9
0
Fork 0

move unlink_recursive declaration to libfile.h

unlink_recursive is a file utility function, so move the prototype to
libfile.h

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2016-04-12 11:20:31 +02:00
parent 69858c74b2
commit e1385b3399
5 changed files with 5 additions and 2 deletions

View File

@ -26,6 +26,7 @@
#include <envfs.h>
#include <errno.h>
#include <fs.h>
#include <libfile.h>
#include <malloc.h>
#include <globalvar.h>

View File

@ -19,6 +19,7 @@
#include <common.h>
#include <command.h>
#include <fs.h>
#include <libfile.h>
#include <getopt.h>
#include <errno.h>

View File

@ -179,8 +179,6 @@ void automount_remove(const char *_path);
int automount_add(const char *path, const char *cmd);
void automount_print(void);
int unlink_recursive(const char *path, char **failedpath);
int fsdev_open_cdev(struct fs_device_d *fsdev);
const char *cdev_get_mount_path(struct cdev *cdev);
const char *cdev_mount_default(struct cdev *cdev, const char *fsoptions);

View File

@ -24,4 +24,6 @@ int open_and_lseek(const char *filename, int mode, loff_t pos);
/* Create a directory and its parents */
int make_directory(const char *pathname);
int unlink_recursive(const char *path, char **failedpath);
#endif /* __LIBFILE_H */

View File

@ -1,4 +1,5 @@
#include <common.h>
#include <libfile.h>
#include <errno.h>
#include <libbb.h>
#include <fs.h>