🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by J.B. Nicholson-Owens Wed, 13 Apr 1994 19:31
NN 6.5.0 beta 3 problem with article_number?
#5699
Author: J.B. Nicholson-Owens
Date: Wed, 13 Apr 1994 19:31
23 lines
1235 bytes
In nntp.c, has anyone had a problem compiling this line:

  article_number *first, *last;

from this segment of code (from function nntp_get_overview):

  #ifdef NOV

  /*
  ** Prime the nntp server to snarf the overview file for a newsgroup.
  ** Sends the XOVER command and prepares to read the result.
  */
  struct novgroup *
  nntp_get_overview(gh, first, last)
  group_header *gh;
  article_number *first, *last;
  {
    int n;

I keep getting an error that arguments `first' and `last' don't match
prototype.
--
*NO* NeXTmail please
Re: NN 6.5.0 beta 3 problem with article_number?
#5697
Author: Jim Jagielski
Date: Thu, 14 Apr 1994 11:24
34 lines
2009 bytes
jbn@owens.slip.uiuc.edu (J.B. Nicholson-Owens) writes:

>In nntp.c, has anyone had a problem compiling this line:

>  article_number *first, *last;

>from this segment of code (from function nntp_get_overview):

>  #ifdef NOV

>  /*
>  ** Prime the nntp server to snarf the overview file for a newsgroup.
>  ** Sends the XOVER command and prepares to read the result.
>  */
>  struct novgroup *
>  nntp_get_overview(gh, first, last)
>  group_header *gh;
>  article_number *first, *last;
>  {
>    int n;

>I keep getting an error that arguments `first' and `last' don't match
>prototype.

Yep... You need to edit global.h to change the prototypes of 'first' and 'last'
from "int" to "article_number"...

After that, it should compile fine.
--
#include <std/disclaimer.h>
    Jim Jagielski               |  "Is this something you can share with
    jim@jagubox.gsfc.nasa.gov   |   the rest of us Amazing Larry!!??"
    NASA/GSFC, Code 734.4       |                  Pee Wee
    Greenbelt, MD 20771         |
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads