diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-17 08:39:47 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-02-21 10:05:22 -0500 |
commit | 9fa108ac48c9b76111589967184436bf63109731 (patch) | |
tree | a17d913ab78fdb340c1b7ce13c83563937cc316c /src/libudev/libudev.c | |
parent | c1db5c60e38fa4b1cd2c590dbc8ce95c4fc3844b (diff) |
everywhere: make use of new0() and macro() macros, and stop using perror()
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/libudev.c')
-rw-r--r-- | src/libudev/libudev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev.c b/src/libudev/libudev.c index c7f9dc4639..4373ab4d54 100644 --- a/src/libudev/libudev.c +++ b/src/libudev/libudev.c @@ -120,7 +120,7 @@ _public_ struct udev *udev_new(void) struct udev *udev; FILE *f; - udev = calloc(1, sizeof(struct udev)); + udev = new0(struct udev, 1); if (udev == NULL) return NULL; udev->refcount = 1; |