tcpdump mailing list archives

Re: Error in the "strcat" function


From: "Jin YunYe" <yunyejin () gmail com>
Date: Fri, 2 Feb 2007 20:29:42 +0800

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.


Current thread: