From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Craig Subject: [PATCH] conntrack: Fix option parsing for ARM Date: Fri, 12 May 2006 17:11:27 +1000 Message-ID: <4464351F.6000402@snapgear.com> References: <20060501175353.GD5267@rama> <20060503111549.GO16562@sunbeam.de.gnumonks.org> <4460B14E.90506@eurodev.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070100000604090707080602" Cc: netfilter-devel@lists.netfilter.org Return-path: To: =?ISO-8859-1?Q?S=E9bastien_LAVEZE?= , Pablo Neira Ayuso In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org This is a multi-part message in MIME format. --------------070100000604090707080602 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 05/10/2006 06:18 PM, S=E9bastien LAVEZE wrote: > I have problem using the conntrack utility... > It always display the help message and i get the message > conntrack v1.00beta2: Missing arguments... The result of getopt_long() was assigned to a char, which defaults to unsigned on ARM, so the comparison against -1 always failed. --------------070100000604090707080602 Content-Type: text/plain; name="conntrack-getopt.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="conntrack-getopt.patch" Index: conntrack/src/conntrack.c =================================================================== --- conntrack/src/conntrack.c (revision 6601) +++ conntrack/src/conntrack.c (working copy) @@ -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; --------------070100000604090707080602--