- * This software may be distributed either under the terms of the
- * BSD-style licence that accompanies tcpdump or under the GNU GPL
+ * This software may be distributed either under the terms of the
+ * BSD-style licence that accompanies tcpdump or under the GNU GPL
#include "interface.h"
#include "extract.h"
/* Check for a string but not go beyond length
* Return TRUE on match, FALSE otherwise
#include "interface.h"
#include "extract.h"
/* Check for a string but not go beyond length
* Return TRUE on match, FALSE otherwise
- if (l_strnstart("MSG", 4, bp, length)) /* A REQuest */
+ if (l_strnstart("MSG", 4, (const char *)bp, length)) /* A REQuest */
- else if (l_strnstart("RPY ", 4, bp, length))
+ else if (l_strnstart("RPY ", 4, (const char *)bp, length))
- else if (l_strnstart("ERR ", 4, bp, length))
+ else if (l_strnstart("ERR ", 4, (const char *)bp, length))
- else if (l_strnstart("ANS ", 4, bp, length))
+ else if (l_strnstart("ANS ", 4, (const char *)bp, length))
- else if (l_strnstart("NUL ", 4, bp, length))
+ else if (l_strnstart("NUL ", 4, (const char *)bp, length))
- else if (l_strnstart("SEQ ", 4, bp, length))
+ else if (l_strnstart("SEQ ", 4, (const char *)bp, length))
- else if (l_strnstart("END", 4, bp, length))
+ else if (l_strnstart("END", 4, (const char *)bp, length))