summaryrefslogtreecommitdiff
path: root/trafgen_lexer.l
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-05-24 13:22:35 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-05-24 13:22:35 +0200
commit97d26b9ee4bffda96e74fd1379cdddd47adbaf49 (patch)
tree40bda8423baadbcb89b8f7c47acd6445dfdcc92e /trafgen_lexer.l
parenta168c8c7b8d6f884775815ba45868689fe43774e (diff)
misc: fix some minor compile warnings all over
Some regarding unused parameter, some regarding signed/unsigned comparison. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'trafgen_lexer.l')
-rw-r--r--trafgen_lexer.l3
1 files changed, 1 insertions, 2 deletions
diff --git a/trafgen_lexer.l b/trafgen_lexer.l
index 146d0e7..a361bfc 100644
--- a/trafgen_lexer.l
+++ b/trafgen_lexer.l
@@ -24,10 +24,9 @@ extern void yyerror(const char *);
static char *try_convert_shellcode(char *sstr)
{
- int j = 0;
bool found_any = false;
char *bstr, *ostr = sstr, *hay, *orig = sstr;
- size_t blen, slen = strlen(sstr), tot = 0;
+ size_t j = 0, blen, slen = strlen(sstr), tot = 0;
const char *needle = "\\x";
sstr++;