summaryrefslogtreecommitdiff
path: root/usr.bin/encrypt
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2016-09-04 15:36:14 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2016-09-04 15:36:14 +0000
commit3c32514a79085445425ce9bd4b57d7a80f978a9c (patch)
tree90d70cde9edb242064c280645f0f6b86348fb65c /usr.bin/encrypt
parent23a90671cea5c6188bb92743d4d197570a7bad26 (diff)
usage() is static and __dead; add prototype for print_passwd;
return instead of exit from main
Diffstat (limited to 'usr.bin/encrypt')
-rw-r--r--usr.bin/encrypt/encrypt.c9
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;
}