diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1996-06-27 05:42:01 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1996-06-27 05:42:01 +0000 |
commit | 4c2e2040b6eaadb0dff37292ec566f9bf992fd94 (patch) | |
tree | 3fc09362b6356d1ee5d879b9c6636b97fb3826c0 /libexec/mknetid | |
parent | 2edcca74cb0864412d0043d15fc0927e20060c6d (diff) | |
download | src-test2-4c2e2040b6eaadb0dff37292ec566f9bf992fd94.tar.gz src-test2-4c2e2040b6eaadb0dff37292ec566f9bf992fd94.zip |
Notes
Diffstat (limited to 'libexec/mknetid')
-rw-r--r-- | libexec/mknetid/hash.h | 10 | ||||
-rw-r--r-- | libexec/mknetid/mknetid.c | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/libexec/mknetid/hash.h b/libexec/mknetid/hash.h index 1023e3b32515..58c64d267e03 100644 --- a/libexec/mknetid/hash.h +++ b/libexec/mknetid/hash.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995 + * Copyright (c) 1995, 1996 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -29,10 +29,10 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: hash.h,v 1.3 1996/06/24 22:48:32 wpaul Exp $ + * $Id: hash.h,v 1.1.1.1 1996/06/25 20:26:38 wpaul Exp $ */ -/* Groupit entry hung off a member_entry node. */ +/* Groupid entry hung off a member_entry node. */ struct grouplist { gid_t groupid; struct grouplist *next; @@ -46,8 +46,8 @@ struct member_entry { }; /* Table size (chosen arbitrarily). Not too big, not too small. */ -#define TABLESIZE 256 -#define HASH_MASK 0x000000FF +#define TABLESIZE 1024 +#define HASH_MASK 0x000003FF extern void mstore __P(( struct member_entry ** , char *, int, int )); extern struct grouplist *lookup __P(( struct member_entry **, char * )); diff --git a/libexec/mknetid/mknetid.c b/libexec/mknetid/mknetid.c index ee306cd55492..964844e8dcd1 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); |