projects
/
nbd.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r305: Use constants rather than their value
[nbd.git]
/
nbd-server.c
diff --git
a/nbd-server.c
b/nbd-server.c
index
c027557
..
527ed60
100644
(file)
--- 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);