Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/makekey Remove unnecessary header includes; remove '...



details:   https://anonhg.NetBSD.org/src/rev/deb098122bb9
branches:  trunk
changeset: 500733:deb098122bb9
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Dec 17 20:53:03 2000 +0000

description:
Remove unnecessary header includes; remove 'register'; conform better to KNF.

diffstat:

 libexec/makekey/makekey.c |  20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diffs (52 lines):

diff -r 00b71753f42c -r deb098122bb9 libexec/makekey/makekey.c
--- a/libexec/makekey/makekey.c Sun Dec 17 20:38:22 2000 +0000
+++ b/libexec/makekey/makekey.c Sun Dec 17 20:53:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makekey.c,v 1.4 1997/10/07 11:31:26 mrg Exp $  */
+/*     $NetBSD: makekey.c,v 1.5 2000/12/17 20:53:03 wiz Exp $  */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -40,24 +40,20 @@
 #if 0
 static char sccsid[] = "from: @(#)makekey.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: makekey.c,v 1.4 1997/10/07 11:31:26 mrg Exp $");
+__RCSID("$NetBSD: makekey.c,v 1.5 2000/12/17 20:53:03 wiz Exp $");
 #endif
 #endif /* not lint */
 
-#include <sys/types.h>
-
 #include <err.h>
 #include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
-static void get __P((char *, int));
-int main __P((void));
+static void get(char *, int);
+int main(void);
 
 int
-main()
+main(void)
 {
        int len;
        char *r, key[9], salt[3];
@@ -71,11 +67,9 @@
 }
 
 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)



Home | Main Index | Thread Index | Old Index