From 87ffdf06b6ecc46b38ca953419304b64e37c7c95 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Mon, 12 Aug 2002 00:42:57 +0000 Subject: Swap args to calloc(3) so they are in the correct order; art@ ok. --- usr.bin/mail/cmd3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/mail/cmd3.c') diff --git a/usr.bin/mail/cmd3.c b/usr.bin/mail/cmd3.c index bddc3c8e66f..a8ecb29d24c 100644 --- a/usr.bin/mail/cmd3.c +++ b/usr.bin/mail/cmd3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd3.c,v 1.18 2001/11/21 20:41:55 millert Exp $ */ +/* $OpenBSD: cmd3.c,v 1.19 2002/08/12 00:42:56 aaron Exp $ */ /* $NetBSD: cmd3.c,v 1.8 1997/07/09 05:29:49 mikel Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static const char sccsid[] = "@(#)cmd3.c 8.2 (Berkeley) 4/20/95"; #else -static const char rcsid[] = "$OpenBSD: cmd3.c,v 1.18 2001/11/21 20:41:55 millert Exp $"; +static const char rcsid[] = "$OpenBSD: cmd3.c,v 1.19 2002/08/12 00:42:56 aaron Exp $"; #endif #endif /* not lint */ @@ -491,7 +491,7 @@ group(void *v) gname = *argv; h = hash(gname); if ((gh = findgroup(gname)) == NULL) { - if ((gh = (struct grouphead *)calloc(sizeof(*gh), 1)) == NULL) + if ((gh = (struct grouphead *)calloc(1, sizeof(*gh))) == NULL) errx(1, "Out of memory"); gh->g_name = vcopy(gname); gh->g_list = NULL; @@ -506,7 +506,7 @@ group(void *v) */ for (ap = argv+1; *ap != NULL; ap++) { - if ((gp = (struct group *)calloc(sizeof(*gp), 1)) == NULL) + if ((gp = (struct group *)calloc(1, sizeof(*gp))) == NULL) errx(1, "Out of memory"); gp->ge_name = vcopy(*ap); gp->ge_link = gh->g_list; -- cgit v1.2.3