[news.software.anu-news] Problem with NNTP_FEED in V5.9B

russell@zeus.unl.edu (Tim Russell) (11/26/89)

There's a problem with NNTP_FEED.C as patched under V5.9B.  It's a misplaced
#endif.  Here's a patch to fix it.  Basically, just move the #endif in open_net
that's under the line with "sys$assign(c$dsc("INET0:") to be above it instead
of below it.

-------------------------Patch - cut here------------------------------------
*** nntp_feed.c;-1
--- nntp_feed.c
**************
*** 416,422
      else if (proto == WINTCP) {
  #elif MULTINET
      else if (proto == MULTINETTCP) {
-         if (sys$assign(c$dsc("INET0:"),&net_chan,0,0) & 1) {
  #endif
  
  #if TWG || MULTINET
--- 416,421 -----
      else if (proto == WINTCP) {
  #elif MULTINET
      else if (proto == MULTINETTCP) {
  #endif
          if (sys$assign(c$dsc("INET0:"),&net_chan,0,0) & 1) {
  
**************
*** 418,423
      else if (proto == MULTINETTCP) {
          if (sys$assign(c$dsc("INET0:"),&net_chan,0,0) & 1) {
  #endif
  
  #if TWG || MULTINET
              if ((sys$qiow(0,net_chan,IO$_SOCKET,&read_iosb,0,0,
--- 417,423 -----
  #elif MULTINET
      else if (proto == MULTINETTCP) {
  #endif
+         if (sys$assign(c$dsc("INET0:"),&net_chan,0,0) & 1) {
  
  #if TWG || MULTINET
              if ((sys$qiow(0,net_chan,IO$_SOCKET,&read_iosb,0,0,

-- 
Tim Russell   Univ. Of Nebr. at Omaha   russell@{zeus.unl.edu | unoma1.bitnet}
  "It's enough to make you wonder sometimes if you're on the right planet."
                                                -- Frankie Goes To Hollywood