diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2016-09-04 15:36:14 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2016-09-04 15:36:14 +0000 |
commit | 3c32514a79085445425ce9bd4b57d7a80f978a9c (patch) | |
tree | 90d70cde9edb242064c280645f0f6b86348fb65c | |
parent | 23a90671cea5c6188bb92743d4d197570a7bad26 (diff) |
usage() is static and __dead; add prototype for print_passwd;
return instead of exit from main
-rw-r--r-- | usr.bin/encrypt/encrypt.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/encrypt/encrypt.c b/usr.bin/encrypt/encrypt.c index e9c549dcf92..5a80fdd081f 100644 --- a/usr.bin/encrypt/encrypt.c +++ b/usr.bin/encrypt/encrypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: encrypt.c,v 1.44 2016/09/02 18:06:43 tedu Exp $ */ +/* $OpenBSD: encrypt.c,v 1.45 2016/09/04 15:36:13 tb Exp $ */ /* * Copyright (c) 1996, Jason Downs. All rights reserved. @@ -45,11 +45,12 @@ extern char *__progname; -void usage(void); +static void __dead usage(void); +static void print_passwd(char *, int, char *); #define DO_BLF 0 -void +static void __dead usage(void) { @@ -170,5 +171,5 @@ main(int argc, char **argv) explicit_bzero(string, strlen(string)); free(string); } - exit(0); + return 0; } |