Re: [tcpdump-workers] Error in the "strcat" function

2007-02-19 Thread Guy Harris
Adelmo Silva wrote: But, if I wrote: strcat(string1, &ips1[i]); Another error happen: teste1.c:294: error: incompatible types in assignment So, on line 294 of testel.c, did you write strcat(string1, &ips1[i]); or did you write string1 = strcat(string1, &ips1[i]); I suspect

Re: [tcpdump-workers] Error in the "strcat" function

2007-02-03 Thread Adelmo Silva
mp-workers] Error in the "strcat" function Date: Fri, 02 Feb 2007 11:35:37 -0800 MIME-Version: 1.0 That means ips1[i] is a u_char, which is an (unsigned) integer. If you mean that you want to copy the text starting at the "i"th character in ips1 (where the first character is t

Re: [tcpdump-workers] Error in the "strcat" function

2007-02-02 Thread Guy Harris
Adelmo Silva wrote: Jin YunYe wrote: On 2/2/07, Adelmo Silva <[EMAIL PROTECTED]> 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 witho

Re: [tcpdump-workers] Error in the "strcat" function

2007-02-02 Thread Adelmo Silva
char string1[15], string2[15]; u_char flag, *ips1, *ipd1, *ips2, *ipd2; From: "Jin YunYe" <[EMAIL PROTECTED]> Reply-To: tcpdump-workers@lists.tcpdump.org To: tcpdump-workers@lists.tcpdump.org Subject: Re: [tcpdump-workers] Error in the "strcat" function Date

Re: [tcpdump-workers] Error in the "strcat" function

2007-02-02 Thread Jin YunYe
Hi On 2/2/07, Adelmo Silva <[EMAIL PROTECTED]> 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: inco

[tcpdump-workers] Error in the "strcat" function

2007-02-01 Thread Adelmo Silva
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