mirror of https://github.com/vitalif/e2fsprogs
Fix more compiler warnings.
parent
151a71620d
commit
b969b1b8a5
|
@ -122,10 +122,11 @@ void ll_rw_block(int rw, int nr, struct buffer_head *bhp[])
|
|||
}
|
||||
bh->b_dirty = 0;
|
||||
bh->b_uptodate = 1;
|
||||
} else
|
||||
} else {
|
||||
jfs_debug(3, "no-op %s for block %lu\n",
|
||||
rw == READ ? "read" : "write",
|
||||
(unsigned long) bh->b_blocknr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
* found.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE 1 /* get strnlen() */
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#ifdef HAVE_ERRNO_H
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
* - The inode_reg_map bitmap
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE 1 /* get strnlen() */
|
||||
#include <string.h>
|
||||
|
||||
#include "e2fsck.h"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "uuid.h"
|
||||
|
||||
|
@ -142,6 +143,3 @@ main(int argc, char **argv)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ int main (int argc, char ** argv)
|
|||
fprintf (stderr, "mklost+found %s (%s)\n", E2FSPROGS_VERSION,
|
||||
E2FSPROGS_DATE);
|
||||
if (argc != 1) {
|
||||
(void)argv; /* avoid unused argument warning */
|
||||
fprintf (stderr, _("Usage: mklost+found\n"));
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
* 94/03/06 - Added the checks interval from Uwe Ohse (uwe@tirka.gun.de)
|
||||
*/
|
||||
|
||||
#define _XOPEN_SOURCE /* for inclusion of strptime() */
|
||||
#define _BSD_SOURCE /* for inclusion of strcasecmp() */
|
||||
#include <fcntl.h>
|
||||
#include <grp.h>
|
||||
#ifdef HAVE_GETOPT_H
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
*/
|
||||
|
||||
#include "resize2fs.h"
|
||||
#include <time.h>
|
||||
|
||||
#ifdef __linux__ /* Kludge for debugging */
|
||||
#define RESIZE2FS_DEBUG
|
||||
|
|
|
@ -211,11 +211,11 @@ void do_dump(int argc, char **argv)
|
|||
retval = ext2fs_icount_fetch(test_icount, i, &count);
|
||||
if (retval) {
|
||||
com_err(argv[0], retval,
|
||||
"while fetching icount for %lu", i);
|
||||
"while fetching icount for %lu", (unsigned long)i);
|
||||
return;
|
||||
}
|
||||
if (count)
|
||||
printf("%lu: %u\n", i, count);
|
||||
printf("%lu: %u\n", (unsigned long)i, count);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -240,7 +240,7 @@ void do_get_size(int argc, char **argv)
|
|||
if (check_icount(argv[0]))
|
||||
return;
|
||||
size = ext2fs_get_icount_size(test_icount);
|
||||
printf("Size of icount is: %lu\n", size);
|
||||
printf("Size of icount is: %lu\n", (unsigned long)size);
|
||||
}
|
||||
|
||||
static int source_file(const char *cmd_file, int sci_idx)
|
||||
|
|
Loading…
Reference in New Issue