commit 3b4707049d2bd297a3c71d4082682e0b98930f26 parent 449abb00b6c12fd3ed5f0b19a250288b05d8e6b3 Author: z3bra <willyatmailoodotorg> Date: Sun May 15 19:40:18 +12000 Save return value of actions Diffstat:
sick.c | | | 6 | +++--- |
diff --git a/sick.c b/sick.c @@ -234,8 +234,8 @@ check(FILE *fp, FILE *key) int main(int argc, char *argv[]) { + int ret = 0, action = ACT_NONE; FILE *key = NULL, *fp = NULL; - int action = ACT_NONE; ARGBEGIN{ case 'f': @@ -258,7 +258,7 @@ main(int argc, char *argv[]) fp = stdin; switch (action) { case ACT_SIGN: - sign(fp, key); + ret = sign(fp, key); break; } } @@ -268,5 +268,5 @@ main(int argc, char *argv[]) if (key) fclose(key); - return 0; + return ret; }