diff options
author | robi <robi> | 2012-02-19 17:38:07 +0000 |
---|---|---|
committer | robi <robi> | 2012-02-19 17:38:07 +0000 |
commit | bf74ad294f506a72d5ae671480ad7b88f3be07df (patch) | |
tree | 385c3ba03bf1ab77ff97df0f8c4f664c9fe90593 /src/lookup_local.c | |
parent | 2698ce16c465c39085bee3b20b65c962fdb78530 (diff) |
some small bugs and many gcc warnings
Diffstat (limited to 'src/lookup_local.c')
-rw-r--r-- | src/lookup_local.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lookup_local.c b/src/lookup_local.c index 4f62414..fbd3943 100644 --- a/src/lookup_local.c +++ b/src/lookup_local.c @@ -33,6 +33,7 @@ #include "dir_list.h" #include "util.h" #include "inode.h" +#include "block.h" #define DIRENT_MIN_LENGTH 12 extern ext2_filsys current_fs ; @@ -597,7 +598,7 @@ void lookup_local(char* des_dir, struct dir_list_head_t * dir, __u32 t_after , _ switch (flag & REC_FILTER){ case LIST_ALL : if (dir->dir_inode != lp->inode_nr) break; - printf("DIR %lu %c%s%c\n",lp->inode_nr,c,dir->pathname,c); + printf("DIR %lu %c%s%c\n",(long unsigned int)lp->inode_nr,c,dir->pathname,c); break; case LIST_STATUS : break; @@ -634,7 +635,7 @@ void lookup_local(char* des_dir, struct dir_list_head_t * dir, __u32 t_after , _ //function for all files apart from dir switch (flag & REC_FILTER){ case LIST_ALL : - printf("--- %lu %c%s%s%s%c\n",lp->inode_nr,c,dir->pathname, + printf("--- %lu %c%s%s%s%c\n",(long unsigned int)lp->inode_nr,c,dir->pathname, ((strlen(dir->pathname) > 0) && strcmp(dir->pathname,"/")) ? "/" : "", lp->filename,c); break; |