Skip to content

Commit

Permalink
use EXIT_* constants
Browse files Browse the repository at this point in the history
git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@500 b0b603af-a30f-0410-a34e-baf09ae79d0b
  • Loading branch information
lindner committed Apr 12, 2007
1 parent c0ec7b0 commit c842507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assoc.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ void assoc_init(void) {
primary_hashtable = malloc(hash_size); primary_hashtable = malloc(hash_size);
if (! primary_hashtable) { if (! primary_hashtable) {
fprintf(stderr, "Failed to init hashtable.\n"); fprintf(stderr, "Failed to init hashtable.\n");
exit(1); exit(EXIT_FAILURE);
} }
memset(primary_hashtable, 0, hash_size); memset(primary_hashtable, 0, hash_size);
} }
Expand Down
2 changes: 1 addition & 1 deletion daemon.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ daemon(nochdir, noclose)
case 0: case 0:
break; break;
default: default:
_exit(0); _exit(EXIT_SUCCESS);
} }


if (setsid() == -1) if (setsid() == -1)
Expand Down

0 comments on commit c842507

Please sign in to comment.