🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #259

Re: NNTP/RRN help needed

#259
From: Guy Harris
Date: Sat, 29 Jul 1989 02:33
12 lines
1159 bytes
>Problem #2: In util.c, signal is defined as:
>		         int (*signal())();

It shouldn't be declaring "signal()" at all; it should simply be
including <signal.h> and letting that include file declare it.  This
avoids barfage when you try to make your program work on both systems with
the old-style notion that signal handlers return "int" and systems with
the new-style notion that they return "void".  (You may still get
warnings from some compilers if you save the return value of "signal()"
away in a variable declared in a different style, but those can
generally be lived with.)
Technical Details
Message-ID: <2307@auspex.auspex.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!attcan!uunet!auspex!guy
References: <1391@bnlux0.bnl.gov>

Show Full Headers
Complete Article Headers
Message-ID: <2307@auspex.auspex.com>
Subject: Re: NNTP/RRN help needed
Date: Sat, 29 Jul 1989 02:33:52 +0000
From: guy@auspex.auspex.com (Guy Harris)
References: <1391@bnlux0.bnl.gov>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!attcan!uunet!auspex!guy
Newsgroups: news.software.nntp
Reply-To: guy@auspex.auspex.com (Guy Harris)
Distribution: na
Organization: Auspex Systems, Santa Clara
Lines: 11