diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-06-27 05:42:01 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-06-27 05:42:01 +0000 |
commit | 0a24e0fafd396f63fa8050f6f9cbc2ebcab322d7 (patch) | |
tree | 3fc09362b6356d1ee5d879b9c6636b97fb3826c0 /libexec/mknetid/mknetid.c | |
parent | b32a0b2af85cea66591433649bda13681bf891a6 (diff) | |
download | FreeBSD-src-0a24e0fafd396f63fa8050f6f9cbc2ebcab322d7.zip FreeBSD-src-0a24e0fafd396f63fa8050f6f9cbc2ebcab322d7.tar.gz |
Improve performance with very large user databases by increasing
hash table size from 256 to 1024.
Generate output that looks more like the SunOS mknetid: uses a space
instead of tabs for white space.
Fix typo in comment in hash.h: Groupit -> Groupid.
Diffstat (limited to 'libexec/mknetid/mknetid.c')
-rw-r--r-- | libexec/mknetid/mknetid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/mknetid/mknetid.c b/libexec/mknetid/mknetid.c index ee306cd..964844e 100644 --- a/libexec/mknetid/mknetid.c +++ b/libexec/mknetid/mknetid.c @@ -35,7 +35,7 @@ * Center for Telecommunications Research * Columbia University, New York City * - * $Id: mknetid.c,v 1.5 1996/06/24 22:48:15 wpaul Exp $ + * $Id: mknetid.c,v 1.1.1.1 1996/06/25 20:26:38 wpaul Exp $ */ #include <stdio.h> @@ -51,7 +51,7 @@ #include "hash.h" #ifndef lint -static const char rcsid[] = "$Id: mknetid.c,v 1.5 1996/06/24 22:48:15 wpaul Exp $"; +static const char rcsid[] = "$Id: mknetid.c,v 1.1.1.1 1996/06/25 20:26:38 wpaul Exp $"; #endif #define LINSIZ 1024 @@ -206,7 +206,7 @@ domain not set"); } else { mstore(dtable, writebuf, 0, 1); } - printf("%s.%s@%s\t\t%s:%s", OPSYS, pidptr, domain, pidptr, gidptr); + printf("%s.%s@%s %s:%s", OPSYS, pidptr, domain, pidptr, gidptr); if ((glist = lookup(mtable, (char *)&readbuf)) != NULL) { while(glist) { if (glist->groupid != i) @@ -248,7 +248,7 @@ domain not set"); } else { mstore(dtable, (char *)&writebuf, 0, 1); } - printf ("%s.%s@%s\t\t0:%s\n", OPSYS, ptr, domain, ptr); + printf ("%s.%s@%s 0:%s\n", OPSYS, ptr, domain, ptr); } fclose(hfp); |