tcpdump mailing list archives

Re: Error in the "strcat" function


From: "Adelmo Silva" <adelmojs () hotmail com>
Date: Fri, 02 Feb 2007 12:25:31 -0200



char string1[15], string2[15];

u_char flag, *ips1, *ipd1, *ips2, *ipd2;









From: "Jin YunYe" <yunyejin () gmail com>
Reply-To: tcpdump-workers () lists tcpdump org
To: tcpdump-workers () lists tcpdump org
Subject: Re: [tcpdump-workers] Error in the "strcat" function
Date: Fri, 2 Feb 2007 20:29:42 +0800
MIME-Version: 1.0
Received: from cod.sandelman.ca ([192.139.46.42]) by bay0-mc9-f21.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Fri, 2 Feb 2007 04:36:15 -0800 Received: from lists.tcpdump.org (localhost [127.0.0.1])by cod.sandelman.ca (Postfix) with SMTP id DD666124B2;Fri, 2 Feb 2007 07:36:10 -0500 (EST) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.233])by cod.sandelman.ca (Postfix) with ESMTP id C4EC612340for <tcpdump-workers () lists tcpdump org>; Fri, 2 Feb 2007 07:35:50 -0500 (EST) Received: by wr-out-0506.google.com with SMTP id i30so782740wra for <tcpdump-workers () lists tcpdump org>; Fri, 02 Feb 2007 04:35:49 -0800 (PST) Received: by 10.90.66.9 with SMTP id o9mr4751190aga.1170419382130; Fri, 02 Feb 2007 04:29:42 -0800 (PST)
Received: by 10.90.33.9 with HTTP; Fri, 2 Feb 2007 04:29:42 -0800 (PST)
X-Message-Info: txF49lGdW429KmIGnjC5A49aAGZXGnYJHW+ReHrb3kc=
X-Greylist: delayed 367 seconds by postgrey-1.24 at cod.sandelman.ca; Fri, 02 Feb 2007 07:35:50 EST DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OYvO43gDFagQ85C8jUZQIr5mA9A2jnBLh5iZt3G9OI7au2s5wjuYMVRUI/n/s0PwXSNPda1DwJArDWtFv5d11dhvoLADK9UwDcXZG13dHeh3srCDSCUmlOozIUnWk6OT48+ZAFjis6HWTVIgDd3AuCb61cy6GWC6BzQJoaPbUno= References: <OF1C879E45.F3FF68EC-ONC1257275.002AFC01-C1257275.002F4373 () netfr alcatel fr> <BAY110-F24BD0839A60D6C2E33F6FBD89B0 () phx gbl>
List-Id: <tcpdump.workers.lists.tcpdump.org>
Precedence: list
Return-Path: tcpdump-workers-owner+M2879 () lists tcpdump org
X-OriginalArrivalTime: 02 Feb 2007 12:36:16.0713 (UTC) FILETIME=[BB88EB90:01C746C6]

Hi

On 2/2/07, Adelmo Silva <adelmojs () hotmail com> wrote:
Hello,
I have a error:

debian:/home/adelmojs/MONOGRAFIA# gcc teste1.c -lpcap -o teste1
teste1.c: In function 'SNIFFER':
teste1.c:294: warning: passing argument 2 of 'strcat' makes pointer from
integer without a cast
teste1.c:294: error: incompatible types in assignment

THE LINE 294 HAS:
string1 = strcat(string1,ips1[i]);

Could you quote the line where you declare "string1" and "ips1" in your program?

Thanks

YY
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

_________________________________________________________________
Verificador de Segurança do Windows Live OneCare: verifique já a segurança do seu PC! http://onecare.live.com/site/pt-br/default.htm

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: