🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #2052

Re: INN on OSF

#2052
From: Jerry Aguirre
Date: Wed, 21 Jul 1993 21:57
14 lines
1444 bytes
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.
Technical Details
Message-ID: <22ke4m$h2l@olivea.ATC.Olivetti.Com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.osf.osf1.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!olivea!strobe!jerry
References: <22iho9$dso@pirates.cs.swt.edu> <22jfme$f7p@paperboy.osf.org>

Show Full Headers
Complete Article Headers
Message-ID: <22ke4m$h2l@olivea.ATC.Olivetti.Com>
Subject: Re: INN on OSF
Date: Wed, 21 Jul 1993 21:57:42 +0000
From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre)
References: <22iho9$dso@pirates.cs.swt.edu> <22jfme$f7p@paperboy.osf.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.osf.osf1.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!olivea!strobe!jerry
Newsgroups: comp.unix.osf.osf1,news.software.nntp
Organization: Olivetti ATC; Cupertino, CA; USA
Lines: 13
Distribution: inet
NNTP-Posting-Host: strobe.atc.olivetti.com