chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
everywhere: make use of new0() and macro() macros, and stop using perror()
[elogind.git]
/
src
/
udev
/
udev-ctrl.c
diff --git
a/src/udev/udev-ctrl.c
b/src/udev/udev-ctrl.c
index a65603b3cf3b355293300afb128b3f36e01bc437..263342335260f3d00ffec159e24d01e501c844b5 100644
(file)
--- a/
src/udev/udev-ctrl.c
+++ b/
src/udev/udev-ctrl.c
@@
-75,7
+75,7
@@
struct udev_ctrl *udev_ctrl_new_from_fd(struct udev *udev, int fd)
struct udev_ctrl *uctrl;
const int on = 1;
- uctrl =
calloc(1, sizeof(struct udev_ctrl)
);
+ uctrl =
new0(struct udev_ctrl, 1
);
if (uctrl == NULL)
return NULL;
uctrl->refcount = 1;