Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Tommy Cheung" <s6700007@singnet.com.sg>
To: <axp-list@redhat.com>
Subject: Pointer problems
Date: Sat, 7 Aug 1999 12:07:21 +0800	[thread overview]
Message-ID: <00e301bee08a$59798f40$0101a8c0@netcobra.com> (raw)
In-Reply-To: 199908070253.WAA26222@adder.cs.Virginia.EDU

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



  reply	other threads:[~1999-08-07  3:59 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-05  7:32 Tru64 executeables Bernhard Gschaider
1999-08-05  7:58 ` Greg Lindahl
1999-08-05  8:05   ` John Connett
1999-08-05 13:01     ` Christopher C Chimelis
1999-08-05  8:40 ` Angus Leeming
1999-08-05 11:03   ` Dave Mason
1999-08-05 11:29     ` Matti Aarnio
1999-08-05 16:25     ` Greg Lindahl
1999-08-06  8:46       ` Ivan Kokshaysky
1999-08-06 10:52         ` Roman Martonak
1999-08-06 18:22         ` Greg Lindahl
1999-08-06 19:36           ` Jim Gettys
1999-08-06 20:31             ` Jim Gettys
1999-08-06 23:13         ` Greg Lindahl
1999-08-07  1:28           ` Richard Henderson
1999-08-07  1:30             ` Greg Lindahl
1999-08-07  2:53           ` Greg Lindahl
1999-08-07  4:07             ` Tommy Cheung [this message]
1999-08-07  5:30               ` Pointer problems Michal Jaegermann
1999-08-07  6:54             ` Tru64 executeables Ivan Kokshaysky
1999-08-07  7:04               ` Greg Lindahl
1999-08-07 21:29                 ` Richard Henderson
1999-08-07 21:52                   ` Dave Mason
1999-08-07 22:03                     ` Greg Lindahl
1999-08-07 22:27                   ` Greg Lindahl
1999-08-09 13:01               ` Phil Carmody
1999-08-09 17:02                 ` Greg Lindahl
1999-08-09 17:22                 ` Ivan Kokshaysky
1999-08-09 17:27                   ` Phil Carmody
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox