diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-02-09 11:39:18 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-02-09 11:39:18 +0000 |
commit | 774f899207ee34774a51b64365f1bdfe7e6995fc (patch) | |
tree | dbe973acbf60b11d6dced8dc38a7c9666b825cad /usr.bin | |
parent | 91c0a62b5df3446be6e5289965d7c49fef5046e5 (diff) |
don't cast malloc
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/deroff/deroff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/deroff/deroff.c b/usr.bin/deroff/deroff.c index 0f80d110b0a..78f62652d92 100644 --- a/usr.bin/deroff/deroff.c +++ b/usr.bin/deroff/deroff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: deroff.c,v 1.10 2015/02/09 11:35:41 tedu Exp $ */ +/* $OpenBSD: deroff.c,v 1.11 2015/02/09 11:39:17 tedu Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -431,7 +431,7 @@ getfname(void) return; } - q = (struct chain *) malloc(sizeof(struct chain)); + q = malloc(sizeof(struct chain)); if (q == NULL) err(1, NULL); q->nextp = namechain; @@ -1586,7 +1586,7 @@ buildtab(struct mactab **r_back, int *r_size) } size += sizetab(p1); size += sizetab(p2); - back = (struct mactab *)calloc(size+2, sizeof(struct mactab)); + back = calloc(size+2, sizeof(struct mactab)); if (back == NULL) err(1, NULL); |