diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-21 02:07:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-21 02:07:33 +0000 |
commit | b6541c8fb2bf7a1d6480b19e3db8264680805b17 (patch) | |
tree | b0a496dfa7335b609f85fa1ae5ec0d4a7ea3a678 /usr.sbin/mrouted/cfparse.y | |
parent | cacb390022ee8379c88381aa734bb8bcf1466b28 (diff) |
since stdlib.h is in scope, don't cast.... you know the drill.
no sneakiness detected by krw
Diffstat (limited to 'usr.sbin/mrouted/cfparse.y')
-rw-r--r-- | usr.sbin/mrouted/cfparse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mrouted/cfparse.y b/usr.sbin/mrouted/cfparse.y index fe259b1c3e2..9269812d323 100644 --- a/usr.sbin/mrouted/cfparse.y +++ b/usr.sbin/mrouted/cfparse.y @@ -246,7 +246,7 @@ ifmod : mod struct phaddr *ph; - ph = (struct phaddr *)malloc(sizeof(struct phaddr)); + ph = malloc(sizeof(struct phaddr)); if (ph == NULL) fatal("out of memory"); if ($2.mask) { @@ -300,7 +300,7 @@ mod : THRESHOLD NUMBER { if ($2 < 1 || $2 > 255) struct vif_acl *v_acl; - v_acl = (struct vif_acl *)malloc(sizeof(struct vif_acl)); + v_acl = malloc(sizeof(struct vif_acl)); if (v_acl == NULL) fatal("out of memory"); VAL_TO_MASK(v_acl->acl_mask, $2.mask); |