🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #31824

Re: ANNOUNCE: multifilter-1.0

#31824
From: Pierre Belanger
Date: Tue, 29 Sep 1998 00:00
56 lines
2634 bytes
Pierre Belanger wrote:
> 
> ANNOUNCE: multifilter-1.0, a simple tool to "help" us fight Usenet SPAM!
> 
>
Someone on IRIX using cc reported me the error below.

I don't have access to a cc compiler :(  The first user on the net
who gives me the solution will get the next copy free ;-)

Following modification to the parse.c file can be done so
compilers don't give a warning.  On line # 137:

  Change from: (Length>=0) && isspace(Strip[Length]);
  Change to  : (Length>=0) && (1 == isspace(Strip[Length]));


Here's the error from cc under IRIX 6.5:


        cc -O2 -c -DHIGHWIND article-read.c -o article-read.o
"article-read.c", line 103: error(1029): expected an expression
      if ((PositionEnd >= EOAL) &&
                          ^

"article-read.c", line 104: error(1029): expected an expression
          (0 == strncmp(&Buffer[PositionEnd - EOAL], EOA, EOAL))) {
                                              ^

"article-read.c", line 104: error(1029): expected an expression
          (0 == strncmp(&Buffer[PositionEnd - EOAL], EOA, EOAL))) {
                                                     ^

"article-read.c", line 104: error(1032): expression must have arithmetic
type
          (0 == strncmp(&Buffer[PositionEnd - EOAL], EOA, EOAL))) {
                                                     ^

"article-read.c", line 104: error(1029): expected an expression
          (0 == strncmp(&Buffer[PositionEnd - EOAL], EOA, EOAL))) {
                                                          ^

5 errors detected in the compilation of "article-read.c".
*** Error code 2 (bu21)

EOA and EOAL are defined like this:

#define EOA     "\r\n.\r\n"    // End of Article
#define EOAL    5              // EOA Length

Could it be those "//" not making "cc" happy?

Regards,
Pierre Belanger - RISQ

Technical Details
Message-ID: <36113FF2.DB2147D8@risq.qc.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <36112253.40F71F9E@risq.qc.ca>

Show Full Headers
Complete Article Headers
Message-ID: <36113FF2.DB2147D8@risq.qc.ca>
Subject: Re: ANNOUNCE: multifilter-1.0
Date: Tue, 29 Sep 1998 00:00:00 +0000
From: Pierre Belanger <belanger@risq.qc.ca>
References: <36112253.40F71F9E@risq.qc.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 396098546
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Trace: carnaval.risq.qc.ca 907100146 192.26.210.19 (Tue, 29 Sep 1998 16:15:46 EDT)
Organization: RISQ http://www.risq.qc.ca/
MIME-Version: 1.0
NNTP-Posting-Date: Tue, 29 Sep 1998 16:15:46 EDT
Newsgroups: news.software.nntp