diff options
Diffstat (limited to 'miscutils/devfsd.c')
-rw-r--r-- | miscutils/devfsd.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index 6b31f368a..bfa5c1727 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
@@ -631,7 +631,8 @@ static void process_config_line(const char *line, unsigned long *event_mask) | |||
631 | last_config->next = new; | 631 | last_config->next = new; |
632 | last_config = new; | 632 | last_config = new; |
633 | return; | 633 | return; |
634 | process_config_line_err: | 634 | |
635 | process_config_line_err: | ||
635 | msg_logger_and_die(LOG_ERR, bb_msg_bad_config, msg , line); | 636 | msg_logger_and_die(LOG_ERR, bb_msg_bad_config, msg , line); |
636 | } /* End Function process_config_line */ | 637 | } /* End Function process_config_line */ |
637 | 638 | ||
@@ -644,11 +645,9 @@ static int do_servicing(int fd, unsigned long event_mask) | |||
644 | { | 645 | { |
645 | ssize_t bytes; | 646 | ssize_t bytes; |
646 | struct devfsd_notify_struct info; | 647 | struct devfsd_notify_struct info; |
647 | unsigned long tmp_event_mask; | ||
648 | 648 | ||
649 | /* Tell devfs what events we care about */ | 649 | /* (void*) cast is only in order to match prototype */ |
650 | tmp_event_mask = event_mask; | 650 | xioctl(fd, DEVFSDIOC_SET_EVENT_MASK, (void*)event_mask); |
651 | xioctl(fd, DEVFSDIOC_SET_EVENT_MASK, tmp_event_mask); | ||
652 | while (!caught_signal) { | 651 | while (!caught_signal) { |
653 | errno = 0; | 652 | errno = 0; |
654 | bytes = read(fd,(char *) &info, sizeof info); | 653 | bytes = read(fd,(char *) &info, sizeof info); |