diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2016-02-03 01:47:26 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2016-02-03 01:47:26 +0000 |
commit | 43f44b9d916754985b60b76d71ef74f1fd3a16e9 (patch) | |
tree | 75b5a058e2a13f412c466b19126c8ae404c0a8fa /usr.bin/vi/cl | |
parent | 330660e15b8a37c50952670c09ad3b9bf78cb89b (diff) |
Remove needless alias macros for malloc and calloc. No binary change. I
got this upstreamed a few weeks ago.
ok tb (less a few style tweaks), martijn (who suggested style tweaks)
Diffstat (limited to 'usr.bin/vi/cl')
-rw-r--r-- | usr.bin/vi/cl/cl_main.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/vi/cl/cl_main.c b/usr.bin/vi/cl/cl_main.c index b470e67376f..fb1045f2ee6 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.30 2016/01/30 21:23:50 martijn Exp $ */ +/* $OpenBSD: cl_main.c,v 1.31 2016/02/03 01:47:25 mmcc Exp $ */ /*- * Copyright (c) 1993, 1994 @@ -146,8 +146,7 @@ gs_init(void) GS *gp; /* Allocate the global structure. */ - CALLOC_NOMSG(NULL, gp, 1, sizeof(GS)); - if (gp == NULL) + if ((gp = calloc(1, sizeof(GS))) == NULL) err(1, NULL); return (gp); @@ -164,8 +163,7 @@ cl_init(GS *gp) int fd; /* Allocate the CL private structure. */ - CALLOC_NOMSG(NULL, clp, 1, sizeof(CL_PRIVATE)); - if (clp == NULL) + if ((clp = calloc(1, sizeof(CL_PRIVATE))) == NULL) err(1, NULL); gp->cl_private = clp; |