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:
parent
69858c74b2
commit
e1385b3399
|
@ -26,6 +26,7 @@
|
|||
#include <envfs.h>
|
||||
#include <errno.h>
|
||||
#include <fs.h>
|
||||
#include <libfile.h>
|
||||
#include <malloc.h>
|
||||
#include <globalvar.h>
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <fs.h>
|
||||
#include <libfile.h>
|
||||
#include <getopt.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <common.h>
|
||||
#include <libfile.h>
|
||||
#include <errno.h>
|
||||
#include <libbb.h>
|
||||
#include <fs.h>
|
||||
|
|
Loading…
Reference in New Issue