From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 13107 invoked from network); 7 Aug 1999 03:59:37 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 7 Aug 1999 03:59:37 -0000 Received: from zinc.singnet.com.sg (zinc.singnet.com.sg [165.21.7.31]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id XAA16257 for ; Fri, 6 Aug 1999 23:59:36 -0400 Received: from meow (ad202.166.6.178.magix.com.sg [202.166.6.178]) by zinc.singnet.com.sg (8.9.1a/8.9.1) with SMTP id LAA07788 for ; Sat, 7 Aug 1999 11:59:33 +0800 (SGT) Message-ID: <00e301bee08a$59798f40$0101a8c0@netcobra.com> From: "Tommy Cheung" To: References: <199908070253.WAA26222@adder.cs.Virginia.EDU> Subject: Pointer problems Date: Sat, 7 Aug 1999 12:07:21 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Content-Transfer-Encoding: 7bit Hi all, I think this might be a common problem with programs between 32bit and 64bit. machine = (char *)malloc(MAXLINE); strncpy(machine, arg, MAXLINE - 1); if (strncmp(machine, "http://", 7) == 0) { http = 1; debug("We have an http request\n"); machine += 7; port = 80; /* STANDARD HTTP PORT */ } else { http=0; /* NOT TESTING HTTP */ port = 23; /* TELNET DEFAULT */ } ptr = (char *)strchr(machine, ':'); when complie we got this bbnet.c:93: warning: cast to pointer from integer of different size Any ideas? Tommy