From: chris mikkelson Date: Thu, 5 Feb 2009 19:17:13 +0000 (-0600) Subject: Use correct element names for linkage. Should just use sys/queue.h X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=ce83a647d05c238b9be59b385cb268f4ed12acbb;p=liburl Use correct element names for linkage. Should just use sys/queue.h and be done with it... --- 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); } }