artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3c624a
)
obvious conversion to mallocarray()
author
deraadt
<deraadt@openbsd.org>
Sun, 13 Jul 2014 20:49:42 +0000
(20:49 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sun, 13 Jul 2014 20:49:42 +0000
(20:49 +0000)
sys/lib/libz/zopenbsd.c
patch
|
blob
|
history
diff --git
a/sys/lib/libz/zopenbsd.c
b/sys/lib/libz/zopenbsd.c
index
7c6a772
..
10d3845
100644
(file)
--- a/
sys/lib/libz/zopenbsd.c
+++ b/
sys/lib/libz/zopenbsd.c
@@
-10,10
+10,7
@@
zcalloc(notused, items, size)
void *notused;
u_int items, size;
{
- void *ptr;
-
- ptr = malloc(items * size, M_DEVBUF, M_NOWAIT);
- return ptr;
+ return mallocarray(items, size, M_DEVBUF, M_NOWAIT);
}
void