summaryrefslogtreecommitdiff
path: root/udev/test-udev.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-01 20:59:09 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-01 20:59:09 +0200
commit44aff4cd6d74d230e4a97f8d59f780472b7cad6e (patch)
tree893df31fbb0c2005226435a21aa7041e19d75e6e /udev/test-udev.c
parent0d1c29c3d143232dfedf0881524bb2ef803c3067 (diff)
udev_device_init() remove statically allocated device support
Diffstat (limited to 'udev/test-udev.c')
-rw-r--r--udev/test-udev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/udev/test-udev.c b/udev/test-udev.c
index 591e93058a..4d5881deae 100644
--- a/udev/test-udev.c
+++ b/udev/test-udev.c
@@ -29,6 +29,7 @@
#include <signal.h>
#include <unistd.h>
#include <syslog.h>
+#include <grp.h>
#include "udev.h"
#include "udev_rules.h"
@@ -138,7 +139,7 @@ int main(int argc, char *argv[], char *envp[])
goto fail;
}
- udev = udev_device_init(NULL);
+ udev = udev_device_init();
if (udev == NULL)
goto fail;
@@ -171,6 +172,7 @@ fail:
exit:
logging_close();
+ endgrent();
if (retval != 0)
return 1;
return 0;