webread.c   webread.c 
/*** File webread.c /*** File webread.c
*** October 29, 2010 *** September 16, 2011
*** By Doug Mink, dmink@cfa.harvard.edu *** By Doug Mink, dmink@cfa.harvard.edu
*** Harvard-Smithsonian Center for Astrophysics *** Harvard-Smithsonian Center for Astrophysics
*** (http code from John Roll) *** (http code from John Roll)
*** Copyright (C) 2000-2010 *** Copyright (C) 2000-2011
*** Smithsonian Astrophysical Observatory, Cambridge, MA, USA *** Smithsonian Astrophysical Observatory, Cambridge, MA, USA
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version. version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
skipping to change at line 52 skipping to change at line 52
#define MAXHOSTNAMELENGTH 256 #define MAXHOSTNAMELENGTH 256
#ifdef HAVE_FCNTL_H #ifdef HAVE_FCNTL_H
#include <fcntl.h> #include <fcntl.h>
#else #else
#include <sys/fcntl.h> #include <sys/fcntl.h>
#endif #endif
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
/* for MinGW */
#ifdef MSWIN
#include <winsock2.h>
#else
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netdb.h> #include <netdb.h>
#endif
/* static int FileINetParse (char *file,int port,struct sockaddr_in *adrine t);*/ /* static int FileINetParse (char *file,int port,struct sockaddr_in *adrine t);*/
static int FileINetParse(); static int FileINetParse();
static FILE *SokOpen(); static FILE *SokOpen();
#define XFREAD 1 #define XFREAD 1
#define XFWRITE 2 #define XFWRITE 2
#define XFCREAT 4 #define XFCREAT 4
#define File FILE * #define File FILE *
skipping to change at line 1033 skipping to change at line 1039
* Aug 24 2007 Fix tab tables filled with spaces * Aug 24 2007 Fix tab tables filled with spaces
* Aug 28 2007 Fix space2tab() declarations which passed on Solaris, not Li nux * Aug 28 2007 Fix space2tab() declarations which passed on Solaris, not Li nux
* Dec 31 2007 Fix chunk reading code in webbuff() * Dec 31 2007 Fix chunk reading code in webbuff()
* *
* Jan 8 2008 Forward automatically if status=301|302|303|307 (code from E d Los) * Jan 8 2008 Forward automatically if status=301|302|303|307 (code from E d Los)
* *
* Sep 25 2009 Reverse movebuff() source, destination arguments for compati bility * Sep 25 2009 Reverse movebuff() source, destination arguments for compati bility
* Sep 25 2009 Free allocated pointers before returning after Douglas Burke * Sep 25 2009 Free allocated pointers before returning after Douglas Burke
* *
* Oct 29 2010 Declare match int in webrnum() * Oct 29 2010 Declare match int in webrnum()
*
* Sep 16 2011 Add winsock2.h include for MinGW MSWindows C
*/ */
 End of changes. 5 change blocks. 
2 lines changed or deleted 10 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/