From: Felix Fietkau Date: Tue, 30 Oct 2012 00:13:17 +0000 (+0100) Subject: fix container_of for the log ustream X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aaa5a702b7ff4b6b086cf24a2c3caa34d7cb1fe2;p=oweals%2Fnetifd.git fix container_of for the log ustream Signed-off-by: Felix Fietkau --- diff --git a/main.c b/main.c index cb9fa16..56851e0 100644 --- a/main.c +++ b/main.c @@ -83,7 +83,7 @@ netifd_process_log_read_cb(struct ustream *s, int bytes) char *data; int len = 0; - proc = container_of(s, struct netifd_process, log); + proc = container_of(s, struct netifd_process, log.stream); log_prefix = proc->log_prefix; if (!log_prefix) log_prefix = "process";