summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-10-18 18:15:10 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 22:02:45 -0700
commit7257cb18458e6b51cc9655887b7f9745f704b71f (patch)
treed7ddc0f12844e7ed866905a47ff806fcb4919c66 /udevinfo.c
parent0f634c33d7eb634737915dc1aa3b7d7342d1a5f2 (diff)
[PATCH] close the syslog
Seems that we never closed the opened syslog. Here is a patch to do this in all our binaries.
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/udevinfo.c b/udevinfo.c
index 8329fe7d06..763cfd139f 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -447,18 +447,18 @@ help:
int main(int argc, char *argv[], char *envp[])
{
- int retval;
+ int rc = 0;
main_argv = argv;
main_argc = argc;
- init_logging("udevinfo");
+ logging_init("udevinfo");
/* initialize our configuration */
udev_init_config();
- retval = process_options();
- if (retval != 0)
- exit(1);
- exit(0);
+ rc = process_options();
+
+ logging_close();
+ exit(rc);
}