freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37
- From: Steve Langasek <vorlon AT netexpress.net>
- To: freetds AT lists.ibiblio.org
- Cc: LowdenJK AT bernstein.com, "Harrison, Bruce (CXO)" <Bruce.Harrison AT hp.com>
- Subject: Re: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37
- Date: Mon, 9 Dec 2002 15:10:28 -0600
On Mon, Dec 09, 2002 at 02:03:38PM -0700, Harrison, Bruce (CXO) wrote:
> It looks as if an int * and an unsigned long * are the same size. As
> far as the char * to int conversion (such as in the strtok_r call), we
> are probably OK for now as the int and the char * are the same size.
> The man pages for strtok_r does indicate that it returns a pointer.
> This is something that should be fixed at some point as more and more
> machines are becoming 64-bit and the pointer size may get changed to 8,
> whilst the size of an int remains at 4. If (when?) this happens, then
> the code would definitely break.
char * -> int may work on your platform, but I'm already using freetds on
64-bit systems, and I don't think I'm the only one. What's the source
for the log cited below? Can I get a more verbose listing so I can more
easily find and fix the non-portable casts?
> $ grep line log |perl -pe 's/^.+# //' |grep ^Type |sort |uniq -c
> 13 Types 'char *' and 'int' are not assignment-compatible.
> 18 Types 'char *' and 'unsigned char *' are not assignment-compatible.
> 12 Types 'const char *' and 'unsigned char *' are not
> assignment-compatible.
> 18 Types 'const unsigned char *' and 'char *' are not
> assignment-compatible.
> 2 Types 'int *' and 'unsigned long *' are not assignment-compatible.
> 1 Types 'passwd *' and 'int' are not assignment-compatible.
> 22 Types 'unsigned char *' and 'char *' are not assignment-compatible.
> 1 Types 'void *' and 'int (*)(cs_context *,cs_clientmsg *)' are not
> assignment-compatible.
--
Steve Langasek
postmodern programmer
Attachment:
pgpgyIviNu_Z_.pgp
Description: PGP signature
-
[freetds] Free TDS Build on HP/UX 11 using aCC A.03.37,
Harrison, Bruce (CXO), 12/06/2002
- <Possible follow-up(s)>
- RE: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37, VenkatKanneboina, 12/06/2002
- RE: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37, Lowden, James K, 12/06/2002
-
[freetds] Free TDS Build on HP/UX 11 using aCC A.03.37,
Harrison, Bruce (CXO), 12/09/2002
- Re: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37, Jerry Grooms, 12/17/2002
- RE: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37, Lowden, James K, 12/09/2002
-
RE: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37,
Harrison, Bruce (CXO), 12/09/2002
- Re: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37, Steve Langasek, 12/09/2002
- RE: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37, Lowden, James K, 12/09/2002
- RE: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37, Harrison, Bruce (CXO), 12/09/2002
- RE: [freetds] Free TDS Build on HP/UX 11 using aCC A.03.37, Lowden, James K, 12/09/2002
Archive powered by MHonArc 2.6.24.