Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre)
Subject: Re: INN on OSF
Date: 21 Jul 1993 21:57:42 GMT	[thread overview]
Message-ID: <22ke4m$h2l@olivea.ATC.Olivetti.Com> (raw)
In-Reply-To: 22jfme$f7p@paperboy.osf.org

In article <22jfme$f7p@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes:
>Look for all "unsigned long" casts related to IP addresses, e.g., where
>inet_addr is called.  Change them to "unsigned int". innd/rc.c,
>backends/rcompress.c include/clibrary.h, lib/remopen.c.

This portability issue came up way back when most systems went from
16 bit ints to 32 bit.  Now it is starting to come up again as we
start to migrate from 32 to 64.  You would think that people would
learn.

Actually I consider it one of the big weaknesses of C.  If every system
had a <sizes.h> or such that defined "int16", "int32" and such it would
be easier to write more portable code.


  reply	other threads:[~1993-07-21 21:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-21  4:47 INN on OSF Wuxu Peng
1993-07-21 13:18 ` Rich Salz
1993-07-21 21:57   ` Jerry Aguirre [this message]
1993-07-22  1:48     ` Rich Salz
1993-07-24  2:22     ` Tom Limoncelli
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