]> git.pond.sub.org Git - empserver/commitdiff
Replace exit(-1) by exit(1)
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 29 Oct 2011 18:25:01 +0000 (20:25 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Dec 2011 10:47:05 +0000 (11:47 +0100)
exit() uses only the least significant byte of its argument.

src/util/fairland.c

index d2e2cc8963cf85d396c1d429ae051d7b8efe3a6f..fcaf94f75cf4f8998cf3ae623a627a2068bebc6d 100644 (file)
@@ -267,7 +267,7 @@ main(int argc, char *argv[])
     write_sects();
     qprint("writing to sectors file...\n");
     if (!ef_close(EF_SECTOR))
-       exit(-1);
+       exit(1);
 
     output();
     qprint("\n\nA script for adding all the countries can be found in \"%s\".\n",