]> git.saurik.com Git - apple/system_cmds.git/blobdiff - pwd_mkdb.tproj/pwd_mkdb.c
system_cmds-671.10.3.tar.gz
[apple/system_cmds.git] / pwd_mkdb.tproj / pwd_mkdb.c
index 6833e36261ca320e764391a77f071016a0815537..075200ae904dea2fde584eb872f594edbe32b37d 100644 (file)
@@ -31,8 +31,9 @@
  * SUCH DAMAGE.
  */
 
+#include <sys/cdefs.h>
 #ifndef lint
-static const char copyright[] =
+__unused static const char copyright[] =
 "@(#) Copyright (c) 1991, 1993, 1994\n\
        The Regents of the University of California.  All rights reserved.\n";
 #endif /* not lint */
@@ -41,7 +42,7 @@ static const char copyright[] =
 #if 0
 static const char sccsid[] = "from: @(#)pwd_mkdb.c     8.5 (Berkeley) 4/20/94";
 #else
-static const char rcsid[] = "$OpenBSD: pwd_mkdb.c,v 1.36 2003/06/08 21:14:55 millert Exp $";
+__unused static const char rcsid[] = "$OpenBSD: pwd_mkdb.c,v 1.36 2003/06/08 21:14:55 millert Exp $";
 #endif
 #endif /* not lint */
 
@@ -62,6 +63,7 @@ static const char rcsid[] = "$OpenBSD: pwd_mkdb.c,v 1.36 2003/06/08 21:14:55 mil
 #include <unistd.h>
 #include <util.h>
 #include <sys/param.h>
+#include "pw_scan.h"
 
 #define        INSECURE        1
 #define        SECURE          2
@@ -383,9 +385,7 @@ fmt:                errno = EFTYPE; /* XXX */
 }
 
 void                    
-cp(from, to, mode)              
-       char *from, *to;
-       mode_t mode;    
+cp(char *from, char *to, mode_t mode)              
 {               
        static char buf[MAXBSIZE];
        int from_fd, rcount, to_fd, wcount;