diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-10-16 09:16:15 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-10-16 09:16:15 +0000 |
commit | 35e561dacd107c850739e1baa6d0e22286da6db0 (patch) | |
tree | 34c1d54b6d26290018348f0fc1808c873acd8105 /usr.sbin/pwd_mkdb | |
parent | 8cd0389410cdb5cc3e53db1b48c6c8991a3e282b (diff) |
kill __yp_token.
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c index 326729f6d8d..ec58dd73f1e 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.c +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwd_mkdb.c,v 1.7 1996/09/28 05:44:33 downsj Exp $ */ +/* $OpenBSD: pwd_mkdb.c,v 1.8 1996/10/16 09:16:14 downsj Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94";*/ -static char *rcsid = "$Id: pwd_mkdb.c,v 1.7 1996/09/28 05:44:33 downsj Exp $"; +static char *rcsid = "$Id: pwd_mkdb.c,v 1.8 1996/10/16 09:16:14 downsj Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -65,9 +65,6 @@ static char *rcsid = "$Id: pwd_mkdb.c,v 1.7 1996/09/28 05:44:33 downsj Exp $"; #define PERM_INSECURE (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) #define PERM_SECURE (S_IRUSR|S_IWUSR) -/* pull this out of the C library. */ -extern const char __yp_token[]; - HASHINFO openinfo = { 4096, /* bsize */ 32, /* ffactor */ @@ -259,8 +256,8 @@ main(argc, argv) /* Store YP token, if needed. */ if(hasyp) { - ypkey.data = (u_char *)__yp_token; - ypkey.size = strlen(__yp_token); + ypkey.data = (u_char *)_PW_YPTOKEN; + ypkey.size = strlen(_PW_YPTOKEN); ypdata.data = (u_char *)NULL; ypdata.size = 0; @@ -333,8 +330,8 @@ main(argc, argv) /* Store YP token, if needed. */ if(hasyp) { - ypkey.data = (u_char *)__yp_token; - ypkey.size = strlen(__yp_token); + ypkey.data = (u_char *)_PW_YPTOKEN; + ypkey.size = strlen(_PW_YPTOKEN); ypdata.data = (u_char *)NULL; ypdata.size = 0; |