summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-06 16:51:09 +0000
committerimp <imp@FreeBSD.org>2002-02-06 16:51:09 +0000
commit81e25fdf51c33b7f7ae263f87fc79dc114f5edb9 (patch)
treeddbe99a0f34fcf8c2d9cc519325b733c2dc9285e /libexec
parent2415390b96e2acb365cf490995d16ba1496273c0 (diff)
downloadFreeBSD-src-81e25fdf51c33b7f7ae263f87fc79dc114f5edb9.zip
FreeBSD-src-81e25fdf51c33b7f7ae263f87fc79dc114f5edb9.tar.gz
o Remove __P
o Use proper prototypes o remove register
Diffstat (limited to 'libexec')
-rw-r--r--libexec/makekey/makekey.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libexec/makekey/makekey.c b/libexec/makekey/makekey.c
index 5f9dc04..2b541bf 100644
--- a/libexec/makekey/makekey.c
+++ b/libexec/makekey/makekey.c
@@ -54,10 +54,10 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
-static void get __P((char *, int));
+static void get(char *, int);
int
-main()
+main(int argc __unused, char *argv[] __unused)
{
int len;
char *r, key[9], salt[3];
@@ -71,11 +71,9 @@ main()
}
static void
-get(bp, len)
- char *bp;
- register int len;
+get(char *bp, int len)
{
- register int nr;
+ int nr;
bp[len] = '\0';
if ((nr = read(STDIN_FILENO, bp, len)) == len)
OpenPOWER on IntegriCloud