summaryrefslogtreecommitdiff
path: root/sbin/growfs
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-11-19 17:30:42 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-11-19 17:30:42 +0000
commit11eceb4d8b6003fc027bf0573957163bd303253e (patch)
treef97da94e109684aa50a22cbe36ba767add344ae3 /sbin/growfs
parent5263b85aedabacb62d8eda3280a9048f429ad230 (diff)
calloc((size_t)1, ...) -> calloc(1, ...)
No binary change (for real this time).
Diffstat (limited to 'sbin/growfs')
-rw-r--r--sbin/growfs/growfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index e809e33dcdf..629a7bffff2 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: growfs.c,v 1.40 2015/08/20 22:02:21 deraadt Exp $ */
+/* $OpenBSD: growfs.c,v 1.41 2015/11/19 17:30:41 mmcc Exp $ */
/*
* Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
* Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
@@ -189,7 +189,7 @@ growfs(int fsi, int fso, unsigned int Nflag)
/*
* Get the cylinder summary into the memory.
*/
- fscs = calloc((size_t)1, (size_t)sblock.fs_cssize);
+ fscs = calloc(1, (size_t)sblock.fs_cssize);
if (fscs == NULL)
errx(1, "calloc failed");
for (i = 0; i < osblock.fs_cssize; i += osblock.fs_bsize) {