summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSergey Koshechkin <serge.koshechkin@gmail.com>2015-11-17 15:14:57 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-18 08:31:18 +0100
commit33060cc67543c2b1f1656cd9ec94ed43df0f3b84 (patch)
treeeb054bbe3d66c2c91f53f2ad1008c2411957f59d /lib
parent916c20fb356c3486bb0ae928ed452a4b58f4e408 (diff)
downloadbarebox-33060cc67543c2b1f1656cd9ec94ed43df0f3b84.tar.gz
barebox-33060cc67543c2b1f1656cd9ec94ed43df0f3b84.tar.xz
make_directory: fix warning: no previous prototype
Signed-off-by: Sergey Koshechkin <serge.koshechkin@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/make_directory.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/make_directory.c b/lib/make_directory.c
index c14c86d45b..7432efc192 100644
--- a/lib/make_directory.c
+++ b/lib/make_directory.c
@@ -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;