summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay@pim.off.vrfy.org>2005-10-27 20:32:07 +0200
committerKay Sievers <kay@pim.off.vrfy.org>2005-10-27 20:32:07 +0200
commit916c5e4725ef4558b752c6464deef6492c8ac31a (patch)
tree1a6a9ef2c3ac07cd5d355246ca66035663c65425 /udevd.c
parentcf686d37b42ed49df9209d6630fd3292c54c6bde (diff)
fix the new warnings I asked for
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/udevd.c b/udevd.c
index a926715908..bd1324e4a3 100644
--- a/udevd.c
+++ b/udevd.c
@@ -67,7 +67,7 @@ static int event_timeout;
static int max_childs;
static int max_childs_running;
static unsigned long long expected_seqnum;
-static char log[32];
+static char udev_log[32];
static LIST_HEAD(msg_list);
static LIST_HEAD(exec_list);
@@ -559,8 +559,8 @@ static struct uevent_msg *get_udevd_msg(void)
intval = (int *) usend_msg.envbuf;
info("udevd message (SET_LOG_PRIORITY) received, udev_log_priority=%i", *intval);
udev_log_priority = *intval;
- sprintf(log, "UDEV_LOG=%i", udev_log_priority);
- putenv(log);
+ sprintf(udev_log, "UDEV_LOG=%i", udev_log_priority);
+ putenv(udev_log);
break;
case UDEVD_SET_MAX_CHILDS:
intval = (int *) usend_msg.envbuf;
@@ -912,8 +912,8 @@ int main(int argc, char *argv[], char *envp[])
info("initialize max_childs_running to %u", max_childs_running);
/* export log_priority , as called programs may want to follow that setting */
- sprintf(log, "UDEV_LOG=%i", udev_log_priority);
- putenv(log);
+ sprintf(udev_log, "UDEV_LOG=%i", udev_log_priority);
+ putenv(udev_log);
while (!udev_exit) {
struct uevent_msg *msg;