diff options
author | 2015-08-20 22:02:20 +0000 | |
---|---|---|
committer | 2015-08-20 22:02:20 +0000 | |
commit | 5ae94ef8a285245bd02b1b03af550cc96e44285d (patch) | |
tree | 8edcc78b54fe77bec712c2f1c1353f045a02af4f /sbin/fsck_ext2fs/utilities.c | |
parent | Got stdlib.h -> do not need to cast from void * (diff) | |
download | wireguard-openbsd-5ae94ef8a285245bd02b1b03af550cc96e44285d.tar.xz wireguard-openbsd-5ae94ef8a285245bd02b1b03af550cc96e44285d.zip |
<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc*
ok krw millert
Diffstat (limited to 'sbin/fsck_ext2fs/utilities.c')
-rw-r--r-- | sbin/fsck_ext2fs/utilities.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_ext2fs/utilities.c b/sbin/fsck_ext2fs/utilities.c index 3eb2daa4753..89b6c4d4f6a 100644 --- a/sbin/fsck_ext2fs/utilities.c +++ b/sbin/fsck_ext2fs/utilities.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utilities.c,v 1.24 2015/01/16 06:39:57 deraadt Exp $ */ +/* $OpenBSD: utilities.c,v 1.25 2015/08/20 22:02:20 deraadt Exp $ */ /* $NetBSD: utilities.c,v 1.6 2001/02/04 21:19:34 christos Exp $ */ /* @@ -127,7 +127,7 @@ bufinit(void) if (bufcnt < MINBUFS) bufcnt = MINBUFS; for (i = 0; i < bufcnt; i++) { - bp = (struct bufarea *)malloc(sizeof(struct bufarea)); + bp = malloc(sizeof(struct bufarea)); bufp = malloc((unsigned int)sblock.e2fs_bsize); if (bp == NULL || bufp == NULL) { free(bp); |