diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-13 14:45:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-13 14:45:51 +0100 |
commit | 955d98c9c1104d469c2989dbfb58f58ee6fe9bdc (patch) | |
tree | 6964487e69bfefbbb08b0de140c67c6f2a00d791 /src/udev/udevd.c | |
parent | 7e2270246b0906675c8f34bc278b1608b969e65c (diff) | |
download | systemd-955d98c9c1104d469c2989dbfb58f58ee6fe9bdc.tar.gz |
everywhere: make use of new0() and macro() macros, and stop using perror()
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r-- | src/udev/udevd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index dca62f2429..9d7fa033b6 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -200,7 +200,7 @@ static void worker_new(struct event *event) udev_monitor_allow_unicast_sender(worker_monitor, monitor); udev_monitor_enable_receiving(worker_monitor); - worker = calloc(1, sizeof(struct worker)); + worker = new0(struct worker, 1); if (worker == NULL) { udev_monitor_unref(worker_monitor); return; @@ -431,7 +431,7 @@ static int event_queue_insert(struct udev_device *dev) { struct event *event; - event = calloc(1, sizeof(struct event)); + event = new0(struct event, 1); if (event == NULL) return -1; |