From aaa5a702b7ff4b6b086cf24a2c3caa34d7cb1fe2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 30 Oct 2012 01:13:17 +0100 Subject: [PATCH] fix container_of for the log ustream Signed-off-by: Felix Fietkau --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.25.1