summaryrefslogtreecommitdiff
path: root/usr.bin/vi/cl/cl_main.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-07 20:39:20 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-07 20:39:20 +0000
commit94c4501cfa7a4eef9c7fa041e6ec39a2be1200c9 (patch)
treebf028a40fb0fcc930a1b4cd53a24f665af86606b /usr.bin/vi/cl/cl_main.c
parent4880ba2cd6c9d093abb966a2f8e73295a241353f (diff)
Remove needless type casts and corresponding type parameters from
allocation macros. No binary change. ok tb@
Diffstat (limited to 'usr.bin/vi/cl/cl_main.c')
-rw-r--r--usr.bin/vi/cl/cl_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vi/cl/cl_main.c b/usr.bin/vi/cl/cl_main.c
index b5e8634f5e0..f5660931acb 100644
--- a/usr.bin/vi/cl/cl_main.c
+++ b/usr.bin/vi/cl/cl_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl_main.c,v 1.26 2015/03/29 01:04:23 bcallah Exp $ */
+/* $OpenBSD: cl_main.c,v 1.27 2015/12/07 20:39:19 mmcc Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -151,7 +151,7 @@ gs_init(char *name)
name = p + 1;
/* Allocate the global structure. */
- CALLOC_NOMSG(NULL, gp, GS *, 1, sizeof(GS));
+ CALLOC_NOMSG(NULL, gp, 1, sizeof(GS));
if (gp == NULL)
perr(name, NULL);
@@ -171,7 +171,7 @@ cl_init(GS *gp)
int fd;
/* Allocate the CL private structure. */
- CALLOC_NOMSG(NULL, clp, CL_PRIVATE *, 1, sizeof(CL_PRIVATE));
+ CALLOC_NOMSG(NULL, clp, 1, sizeof(CL_PRIVATE));
if (clp == NULL)
perr(gp->progname, NULL);
gp->cl_private = clp;