From 90848477e6c0ae633c7bb292568d81e664fa51cd Mon Sep 17 00:00:00 2001 From: chris mikkelson Date: Sat, 13 Mar 2010 13:05:28 -0600 Subject: [PATCH] Use non-generic pointer type in text_finish. --- text.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/text.c b/text.c index f0b1e0a..11b6d53 100644 --- a/text.c +++ b/text.c @@ -78,10 +78,10 @@ text_process(msgproc *m, char *buf, size_t size) static void text_finish(msgproc *m) { - void *priv = msgproc_getpriv(m); - if (priv) { - re_stream_stop((struct stream_re *)priv); - free(priv); + struct stream_re *sre = msgproc_getpriv(m); + if (sre) { + re_stream_stop(sre); + free(sre); } msgproc_free(m); } -- 2.50.1