Skip to contentSkip to conversation

make_directory: fix warning: no previous prototype

PATCH Applied Sergey Koshechkin 2 participants 2 messages Nov 17, 2015 – Nov 18, 2015 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 make_directory: fix warning: no previous prototype

---
 lib/make_directory.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
lib/make_directory.c +4 -1
index c14c86d..7432efc 100644
@@ -5,9 +5,12 @@
 #include <fs.h>
 #include <malloc.h>
 #include <common.h>
+#define STATIC
+#else
+#define STATIC static inline
 #endif
 
-int make_directory(const char *dir)
+STATIC int make_directory(const char *dir)
 {
 	char *s = strdup(dir);
 	char *path = s;
Signature · 7 lines
2.6.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Sergey Koshechkin
---
 lib/make_directory.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

Quoted 28 lines
lib/make_directory.c +4 -1
index c14c86d..7432efc 100644
@@ -5,9 +5,12 @@
 #include <fs.h>
 #include <malloc.h>
 #include <common.h>
+#define STATIC
+#else
+#define STATIC static inline
 #endif
 
-int make_directory(const char *dir)
+STATIC int make_directory(const char *dir)
 {
 	char *s = strdup(dir);
 	char *path = s;
Signature · 7 lines
2.6.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox