From ce83a647d05c238b9be59b385cb268f4ed12acbb Mon Sep 17 00:00:00 2001 From: chris mikkelson Date: Thu, 5 Feb 2009 13:17:13 -0600 Subject: [PATCH] Use correct element names for linkage. Should just use sys/queue.h and be done with it... --- msgproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msgproc.c b/msgproc.c index d3bffad..6f7da1a 100644 --- a/msgproc.c +++ b/msgproc.c @@ -14,7 +14,7 @@ msgproc_create(msgproc *parent, msgproc_module *mod) m->mp_mod = mod; m->mp_prev = parent; m->mp_next = NULL; - if (parent) parent->next = m; + if (parent) parent->mp_next = m; } return m; } @@ -23,7 +23,7 @@ void msgproc_free(msgproc *m) { if (m) { - if (m->mp_prev) m->mp_prev->next = NULL; + if (m->mp_prev) m->mp_prev->mp_next = NULL; free(m); } } -- 2.50.1