[Oisf-devel] Compiler warning about progress in libhtp/test/main.c

Kenneth Steele ken at tilera.com
Mon May 20 16:02:01 UTC 2013


I see compiler warnings when running "make check" in the libhtp/test about comparing a pointer (tx->progress) to an integer (TX_PROGRESS_DONE).

Progress is defined in htp.h as unsigned int process[2], so I would expect the compare to be tx->progress[0] != TX_PROGRESS_DONE, or
tx->progress[1] != TX_PROGRESS_DONE, or maybe it should check both.

Appears to be a simple bug, but the fix is not obvious.

-Ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20130520/ffc68255/attachment.html>


More information about the Oisf-devel mailing list