From: chris mikkelson Date: Sat, 13 Mar 2010 19:05:28 +0000 (-0600) Subject: Use non-generic pointer type in text_finish. X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=90848477e6c0ae633c7bb292568d81e664fa51cd;p=liburl Use non-generic pointer type in text_finish. --- 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); }