summaryrefslogtreecommitdiff
path: root/usr.bin/finger/finger.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 22:32:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 22:32:43 +0000
commit6e5d9523d6273368df6377a4db98a9533d11505c (patch)
tree665d65c04b5874cca0392587a8c45d740f3af051 /usr.bin/finger/finger.c
parent856a95e3f951c7875c113b683b773a7bccf1e685 (diff)
Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert
Diffstat (limited to 'usr.bin/finger/finger.c')
-rw-r--r--usr.bin/finger/finger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c
index e2e2134e49d..5ec24c144bf 100644
--- a/usr.bin/finger/finger.c
+++ b/usr.bin/finger/finger.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: finger.c,v 1.19 2015/01/16 06:40:07 deraadt Exp $ */
+/* $OpenBSD: finger.c,v 1.20 2015/08/20 22:32:41 deraadt Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -194,7 +194,7 @@ userlist(int argc, char **argv)
struct passwd *pw;
int dolocal, *used;
- if (!(used = (int *)calloc((u_int)argc, (u_int)sizeof(int))))
+ if (!(used = calloc((u_int)argc, (u_int)sizeof(int))))
err(2, "malloc");
/* pull out all network requests */