projects
/
platform
/
upstream
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89dd118
)
r305: Use constants rather than their value
author
yoe
<yoe>
Tue, 30 Oct 2007 15:14:31 +0000
(15:14 +0000)
committer
yoe
<yoe>
Tue, 30 Oct 2007 15:14:31 +0000
(15:14 +0000)
nbd-server.c
patch
|
blob
|
history
diff --git
a/nbd-server.c
b/nbd-server.c
index c0275574cb173e2f96e06f29b2a42e2fba93110d..527ed604a06768c6b99cb1a12cc508eebc22d730 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);