Skip to contentSkip to conversation

getopts_long returns integer

PATCH In review Pablo Neira Ayuso 2 participants 2 messages Sep 7, 2006 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 getopts_long returns integer

This patch was posted by a ARM guy, it seems that it got lost. Please apply

[PATCH][CONNTRACK-TOOL] getopts_long returns integer

getopt_long returns an integer, not a char

conntrack.c +1 -1
Index: src/conntrack.c
===================================================================
@@ -602,7 +602,7 @@
 
 int main(int argc, char *argv[])
 {
-	char c;
+	int c;
 	unsigned int command = 0, options = 0;
 	unsigned int type = 0, event_mask = 0;
 	unsigned int l3flags = 0, l4flags = 0, metaflags = 0;
#1 lore raw
Quoted 1 line · Pablo Neira Ayuso

This patch was posted by a ARM guy, it seems that it got lost. Please apply

No, its already in SVN:

[PATCH] conntrack: Fix option parsing for ARM (Philip Craig <[email protected]>)

The result of getopt_long() was assigned to a char, which defaults to unsigned