r305: Use constants rather than their value
authoryoe <yoe>
Tue, 30 Oct 2007 15:14:31 +0000 (15:14 +0000)
committeryoe <yoe>
Tue, 30 Oct 2007 15:14:31 +0000 (15:14 +0000)
nbd-server.c

index c027557..527ed60 100644 (file)
@@ -762,7 +762,7 @@ void sigterm_handler(int s) {
                unlink(pidfname);
        }
 
                unlink(pidfname);
        }
 
-       exit(0);
+       exit(EXIT_SUCCESS);
 }
 
 /**
 }
 
 /**
@@ -1643,7 +1643,7 @@ int main(int argc, char *argv[]) {
 
        if (sizeof( struct nbd_request )!=28) {
                fprintf(stderr,"Bad size of structure. Alignment problems?\n");
 
        if (sizeof( struct nbd_request )!=28) {
                fprintf(stderr,"Bad size of structure. Alignment problems?\n");
-               exit(-1) ;
+               exit(EXIT_FAILURE) ;
        }
 
        memset(pidftemplate, '\0', 256);
        }
 
        memset(pidftemplate, '\0', 256);