log: the ustream notify_state callback is now optional, remove the stub
authorFelix Fietkau <nbd@openwrt.org>
Mon, 29 Oct 2012 23:03:47 +0000 (00:03 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 29 Oct 2012 23:03:51 +0000 (00:03 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
main.c

diff --git a/main.c b/main.c
index 5bfd87aacf5fd29e76d33a016d333c1c82b258ae..7630a8f76225c937ef8aaed1059f9dc2a70ad49c 100644 (file)
--- a/main.c
+++ b/main.c
@@ -118,10 +118,6 @@ netifd_process_log_read_cb(struct ustream *s, int bytes)
        } while (1);
 }
 
-static void netifd_process_log_state_cb(struct ustream *s)
-{
-}
-
 static void
 netifd_process_cb(struct uloop_process *proc, int ret)
 {
@@ -180,7 +176,6 @@ netifd_start_process(const char **argv, char **env, struct netifd_process *proc)
        system_fd_set_cloexec(pfds[0]);
        proc->log.stream.string_data = true;
        proc->log.stream.notify_read = netifd_process_log_read_cb;
-       proc->log.stream.notify_state = netifd_process_log_state_cb;
        ustream_fd_init(&proc->log, pfds[0]);
 
        return 0;