From: yoe Date: Tue, 30 Oct 2007 15:14:31 +0000 (+0000) Subject: r305: Use constants rather than their value X-Git-Url: http://git.alex.org.uk r305: Use constants rather than their value --- diff --git a/nbd-server.c b/nbd-server.c index c027557..527ed60 100644 --- a/nbd-server.c +++ b/nbd-server.c @@ -762,7 +762,7 @@ void sigterm_handler(int s) { 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"); - exit(-1) ; + exit(EXIT_FAILURE) ; } memset(pidftemplate, '\0', 256);