OSDN Git Service

core: Make create_dirs function static
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 14 Dec 2012 10:26:36 +0000 (12:26 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 14 Dec 2012 10:26:36 +0000 (12:26 +0200)
src/textfile.c
src/textfile.h

index b6a7e1f..92ad505 100644 (file)
@@ -39,7 +39,7 @@
 
 #include "textfile.h"
 
-int create_dirs(const char *filename, const mode_t mode)
+static int create_dirs(const char *filename, const mode_t mode)
 {
        struct stat st;
        char dir[PATH_MAX + 1], *prev, *next;
index dc5fc2b..bcced74 100644 (file)
@@ -24,7 +24,6 @@
 #ifndef __TEXTFILE_H
 #define __TEXTFILE_H
 
-int create_dirs(const char *filename, const mode_t mode);
 int create_file(const char *filename, const mode_t mode);
 int create_name(char *buf, size_t size, const char *path,
                                const char *address, const char *name);