diff options
Diffstat (limited to 'debugfs/dump.c')
-rw-r--r-- | debugfs/dump.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/debugfs/dump.c b/debugfs/dump.c index 06c588de..7223bf57 100644 --- a/debugfs/dump.c +++ b/debugfs/dump.c @@ -11,7 +11,9 @@ #include <ctype.h> #include <string.h> #include <time.h> -#include <getopt.h> +#ifdef HAVE_ERRNO_H +#include <errno.h> +#endif #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> @@ -24,8 +26,8 @@ struct dump_block_struct { errcode_t errcode; }; -int dump_block(ext2_filsys fs, blk_t *blocknr, int blockcnt, void - *private) +static int dump_block(ext2_filsys fs, blk_t *blocknr, int blockcnt, + void *private) { ssize_t nbytes; @@ -58,7 +60,7 @@ retry_write: return 0; } -void dump_file(char *cmdname, ino_t inode, int fd, char *outname) +static void dump_file(char *cmdname, ino_t inode, int fd, char *outname) { errcode_t retval; struct dump_block_struct rec; |