diff options
Diffstat (limited to 'crypt.c')
-rw-r--r-- | crypt.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -42,19 +42,19 @@ int main (int argc, char **argv) } /* - * Show usage to given stream, and exit with given code + * Exit with error error message */ -void usage(FILE *stream, int status) +void error(char *message) { - fputs("USAGE: crypt [-h | KEY SALT]\n", stream); - exit(status); + fprintf(stderr, "%s\n", message); + exit(EXIT_FAILURE); } /* - * Exit with error error message + * Show usage to given stream, and exit with given code */ -void error(char *message) +void usage(FILE *stream, int status) { - fprintf(stderr, "%s\n", message); - exit(EXIT_FAILURE); + fputs("USAGE: crypt [-h | KEY SALT]\n", stream); + exit(status); } |