From 4d06461a76587c80359f6db5e1c6e4f4641d2663 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 31 Jan 1998 12:11:10 +0000 Subject: Update. 1998-01-31 20:52 Ulrich Drepper * nscd/grpcache.c (cache_grpinit): Let calloc do the multiplication. * nscd/pwdcache.c (cache_pwdinit): Use thread attribute to detach thread and no pthread_detach. * nscd/nscd.c: Rewrite to use argp instead of getopt. * config.make.in: Likewise. --- nscd/grpcache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nscd/grpcache.c') diff --git a/nscd/grpcache.c b/nscd/grpcache.c index 9f6c767..71309f4 100644 --- a/nscd/grpcache.c +++ b/nscd/grpcache.c @@ -106,13 +106,13 @@ cache_grpinit () pthread_attr_t attr; pthread_t thread; - grptbl = calloc (1, modulo * sizeof (grphash)); + grptbl = calloc (modulo, sizeof (grphash)); if (grptbl == NULL) return -1; - calloc (1, modulo * sizeof (grphash)); + calloc (modulo, sizeof (grphash)); if (gidtbl == NULL) return -1; - negtbl = calloc (1, modulo * sizeof (neghash)); + negtbl = calloc (modulo, sizeof (neghash)); if (negtbl == NULL) return -1; -- cgit v1.1