summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-02-09 11:39:18 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-02-09 11:39:18 +0000
commit774f899207ee34774a51b64365f1bdfe7e6995fc (patch)
treedbe973acbf60b11d6dced8dc38a7c9666b825cad
parent91c0a62b5df3446be6e5289965d7c49fef5046e5 (diff)
don't cast malloc
-rw-r--r--usr.bin/deroff/deroff.c6
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);