diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-12 00:42:57 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-12 00:42:57 +0000 |
commit | 87ffdf06b6ecc46b38ca953419304b64e37c7c95 (patch) | |
tree | 9e44c0b5a073ee17b9d7d3da181c696f012c6248 /sbin/ncheck_ffs | |
parent | 941ec3d1051d178a11f6baa72a3d520413033f2e (diff) |
Swap args to calloc(3) so they are in the correct order; art@ ok.
Diffstat (limited to 'sbin/ncheck_ffs')
-rw-r--r-- | sbin/ncheck_ffs/ncheck_ffs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ncheck_ffs/ncheck_ffs.c b/sbin/ncheck_ffs/ncheck_ffs.c index 361936762ea..b10f9bb4689 100644 --- a/sbin/ncheck_ffs/ncheck_ffs.c +++ b/sbin/ncheck_ffs/ncheck_ffs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncheck_ffs.c,v 1.13 2002/07/11 21:23:29 deraadt Exp $ */ +/* $OpenBSD: ncheck_ffs.c,v 1.14 2002/08/12 00:42:56 aaron Exp $ */ /*- * Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com> @@ -31,7 +31,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.13 2002/07/11 21:23:29 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.14 2002/08/12 00:42:56 aaron Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -193,7 +193,7 @@ getino(ino_t inum) if ((inum / sblock->fs_ipg) != iblk || itab == NULL) { iblk = inum / sblock->fs_ipg; if (itab == NULL && - (itab = calloc(sizeof(struct dinode), sblock->fs_ipg)) == NULL) + (itab = calloc(sblock->fs_ipg, sizeof(struct dinode))) == NULL) errx(1, "no memory for inodes"); bread(fsbtodb(sblock, cgimin(sblock, iblk)), (char *)itab, sblock->fs_ipg * sizeof(struct dinode)); |