reiserfsprogs: fix remaining sparse warnings

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
Jeff Mahoney committed 2013-08-26 19:02:19 -04:00
1 parent 20357cf349
commit 767f7b85df
25 files changed
+122 -116

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@ void check_memory_msg(void)
"the same place with the same block number.\n");
}
void check_hd_msg(void)
static void check_hd_msg(void)
{
fprintf(stderr,
"\nThe problem has occurred looks like a hardware problem. If you have\n"
@@ -630,7 +630,7 @@ int open_rollback_file(char *rollback_file, FILE * log)
return 0;
}
void close_rollback_file()
void close_rollback_file(void)
{
if (!s_rollback_file)
return;
+2 -2
View File
@@ -360,8 +360,8 @@ int misc_device_mounted(char *device)
return hasmntopt(mnt, MNTOPT_RO) ? MF_RO : MF_RW;
}
char buf1[100];
char buf2[100];
static char buf1[100];
static char buf2[100];
void print_how_fast(unsigned long passed, unsigned long total,
int cursor_pos, int reset_time)
+1
View File
@@ -3,6 +3,7 @@
#include <config.h>
#endif
#include "parse_time.h"
#include "misc.h"
#include "reiserfs_lib.h"