summaryrefslogtreecommitdiff
path: root/udev/udevadm.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-07-30 01:45:23 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-07-30 01:45:23 +0200
commit01618658fd82dbc5e6315b639f00e87c6fee3c54 (patch)
treedf8e628d04a81186d6d431fd3b1fa50a3d34987a /udev/udevadm.c
parent726687ad48bdececed1e7e44387c50e009e28208 (diff)
use autotools
Diffstat (limited to 'udev/udevadm.c')
-rw-r--r--udev/udevadm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/udev/udevadm.c b/udev/udevadm.c
index 6e7d7734d2..7adb7c5732 100644
--- a/udev/udevadm.c
+++ b/udev/udevadm.c
@@ -16,6 +16,8 @@
*
*/
+#include "config.h"
+
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
@@ -37,9 +39,9 @@ void log_message(int priority, const char *format, ...)
return;
va_start(args, format);
- if (debug) {
+ if (debug)
vprintf(format, args);
- } else
+ else
vsyslog(priority, format, args);
va_end(args);
}
@@ -56,7 +58,7 @@ static const struct command cmds[];
static int version(int argc, char *argv[], char *envp[])
{
- printf("%s\n", UDEV_VERSION);
+ printf("%s\n", VERSION);
return 0;
}