X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fvolser%2Fvolprocs.c;h=28e0ac9bc80fc0593782397ae32e2733a0091e48;hp=e55a5a22754a8fe4d0b14e164dd0fd37d7e33134;hb=53cc2ebaea5e5488d5285f0d13ffa47069ee986f;hpb=9bb81711a545122bba36c525095aebfe52e73168 diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index e55a5a2..28e0ac9 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -14,6 +14,8 @@ #include +#pragma GCC diagnostic warning "-Wunused-but-set-variable" + #include #include #include @@ -2388,7 +2390,10 @@ VolListOneVolume(struct rx_call *acid, afs_int32 partid, } closedir(dirp); - return (found) ? 0 : ENODEV; + if (found) + return code ? ENODEV: 0; + else + return ENODEV; } /*------------------------------------------------------------------------ @@ -2519,7 +2524,10 @@ VolXListOneVolume(struct rx_call *a_rxCidP, afs_int32 a_partID, * return the proper value. */ closedir(dirp); - return (found) ? 0 : ENODEV; + if (found) + return code ? ENODEV: 0; + else + return ENODEV; } /*SAFSVolXListOneVolume */ /*returns all the volumes on partition partid. If flags = 1 then all the