reiserfsprogs: Fix sparse "warning: Using plain integer as NULL pointer"
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
dd29f49a6c
commit
20357cf349
27 files changed
+192
-188
No files matched your search
@@ -249,7 +249,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
devname = argv[optind];
|
||||
|
||||
fs = reiserfs_open(devname, O_RDONLY, &error, 0, 1);
|
||||
fs = reiserfs_open(devname, O_RDONLY, &error, NULL, 1);
|
||||
if (!fs) {
|
||||
if (error) {
|
||||
reiserfs_exit(1, "cannot open '%s': %s",
|
||||
@@ -319,7 +319,7 @@ int main(int argc, char *argv[])
|
||||
reiserfs_exit(1, "the file system isn't in valid state.");
|
||||
|
||||
/* Needed to keep idiot compiler from issuing false warning */
|
||||
sb_old = 0;
|
||||
sb_old = NULL;
|
||||
|
||||
/* save SB for reporting */
|
||||
if (opt_verbose) {
|
||||
|
||||
Reference in new issue
Block a user