Diff for /libwww/Library/src/HTLocal.c between versions 2.4 and 2.5

version 2.4, 1996/11/30 23:31:33 version 2.5, 1996/12/07 00:06:27
Line 74  PUBLIC int HTFileOpen (HTNet * net, char Line 74  PUBLIC int HTFileOpen (HTNet * net, char
         return HT_ERROR;          return HT_ERROR;
     }      }
 #else  #else
     if ((net->fp = fopen(local, mode)) == NULL) {      if ((net->host->fp = fopen(local, mode)) == NULL) {
         HTRequest_addSystemError(request, ERR_FATAL, errno, NO, "fopen");          HTRequest_addSystemError(request, ERR_FATAL, errno, NO, "fopen");
         return HT_ERROR;          return HT_ERROR;
     }      }
 #endif /* VMS */  #endif /* VMS */
     if (PROT_TRACE)      if (PROT_TRACE)
         HTTrace("HTDoOpen.... `%s\' opened using FILE %p\n",local, net->fp);          HTTrace("HTDoOpen.... `%s\' opened using FILE %p\n",local, net->host->fp);
 #endif /* !NO_UNIX_IO */  #endif /* !NO_UNIX_IO */
   
     /*      /*
Line 107  PUBLIC int HTFileClose (HTNet * net) Line 107  PUBLIC int HTFileClose (HTNet * net)
 {  {
     int status = -1;      int status = -1;
     if (net) {      if (net) {
 #ifndef NO_UNIX_IO  #ifdef NO_UNIX_IO
         if (net->host->fp) {          if (net->host->fp) {
             if (PROT_TRACE) HTTrace("Closing..... ANSI file %p\n", net->host->fp);              if (PROT_TRACE) HTTrace("Closing..... ANSI file %p\n", net->host->fp);
             status = fclose(net->host->fp);              status = fclose(net->host->fp);
Line 117  PUBLIC int HTFileClose (HTNet * net) Line 117  PUBLIC int HTFileClose (HTNet * net)
         if (HTNet_socket(net) != INVSOC) {          if (HTNet_socket(net) != INVSOC) {
             if (PROT_TRACE) HTTrace("Closing..... fd %d\n", HTNet_socket(net));              if (PROT_TRACE) HTTrace("Closing..... fd %d\n", HTNet_socket(net));
             status = NETCLOSE(HTNet_socket(net));              status = NETCLOSE(HTNet_socket(net));
             HTNet_socket(net) = INVSOC;              HTNet_setSocket(net, INVSOC);
         }          }
 #endif /* NO_UNIX_IO */  #endif /* NO_UNIX_IO */
     }      }

Removed from v.2.4  
changed lines
  Added in v.2.5


Webmaster