Daniel Stenberg | 2 Mar 18:21 2003
Picon
Picon

cvs: curl/lib telnet.c,1.35,1.36

Update of /cvsroot/curl/curl/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv4389

Modified Files:
	telnet.c 
Log Message:
moved a variable declaration to remove a compiler warnings with the MSVC
compiler, mentioned by Andi Jahja

Index: telnet.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/telnet.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- telnet.c	28 Feb 2003 12:20:30 -0000	1.35
+++ telnet.c	2 Mar 2003 17:20:59 -0000	1.36
 <at>  <at>  -1050,7 +1050,6  <at>  <at> 
   char *buf = data->state.buffer;
   ssize_t nread;
   struct TELNET *tn;
-  struct timeval now;           /* current time */

   code = init_telnet(conn);
   if(code)
 <at>  <at>  -1205,6 +1204,7  <at>  <at> 
       }
     }
     if(data->set.timeout) {
+      struct timeval now;           /* current time */
(Continue reading)

Daniel Stenberg | 2 Mar 18:43 2003
Picon
Picon

cvs: curl/lib http.c,1.120,1.121

Update of /cvsroot/curl/curl/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv15879

Modified Files:
	http.c 
Log Message:
Init postdata properly before issuing a request, so that there isn't any
lingering POST-stuff that confuses GET requests. Juan F. Codagnone reported
this problem in bug report #653859.

Index: http.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/http.c,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -r1.120 -r1.121
--- http.c	24 Feb 2003 16:53:53 -0000	1.120
+++ http.c	2 Mar 2003 17:43:42 -0000	1.121
 <at>  <at>  -997,6 +997,8  <at>  <at> 
       headers = headers->next;
     }

+    http->postdata = NULL; /* nothing to post at this point */
+
     switch(data->set.httpreq) {

     case HTTPREQ_POST_FORM:

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
(Continue reading)

Daniel Stenberg | 3 Mar 07:40 2003
Picon
Picon

cvs: curl/lib telnet.c,1.36,1.37

Update of /cvsroot/curl/curl/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv1534

Modified Files:
	telnet.c 
Log Message:
Add (void) on our uses of the swrite() macro when we don't read the return
code as this makes compiler warnings. We *should* fix the code to deal with
the return codes instead...

Index: telnet.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/telnet.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- telnet.c	2 Mar 2003 17:20:59 -0000	1.36
+++ telnet.c	3 Mar 2003 06:40:36 -0000	1.37
 <at>  <at>  -263,7 +263,7  <at>  <at> 
    buf[1] = cmd;
    buf[2] = option;

-   swrite(conn->firstsocket, buf, 3);
+   (void)swrite(conn->firstsocket, buf, 3);

    printoption(conn->data, "SENT", cmd, option);
 }
 <at>  <at>  -827,7 +827,7  <at>  <at> 
       snprintf((char *)temp, sizeof(temp),
                "%c%c%c%c%s%c%c", IAC, SB, TELOPT_TTYPE,
(Continue reading)

Daniel Stenberg | 3 Mar 07:42 2003
Picon
Picon

cvs: curl/lib telnet.c,1.37,1.38

Update of /cvsroot/curl/curl/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv2302

Modified Files:
	telnet.c 
Log Message:
another typecast added to please the borland compiler

Index: telnet.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/telnet.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- telnet.c	3 Mar 2003 06:40:36 -0000	1.37
+++ telnet.c	3 Mar 2003 06:42:52 -0000	1.38
 <at>  <at>  -1094,7 +1094,7  <at>  <at> 
         ssize_t bytes_written;
         char *buffer = buf;

-        if(!ReadFile(stdin_handle, buf, 255, &nread, NULL)) {
+        if(!ReadFile(stdin_handle, buf, 255, (LPDWORD)&nread, NULL)) {
           keepon = FALSE;
           break;
         }

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
(Continue reading)

Daniel Stenberg | 3 Mar 07:45 2003
Picon
Picon

cvs: curl/lib http.c,1.121,1.122

Update of /cvsroot/curl/curl/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv2959

Modified Files:
	http.c 
Log Message:
Added typecast to please the MSVC compiler.

Index: http.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/http.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -r1.121 -r1.122
--- http.c	2 Mar 2003 17:43:42 -0000	1.121
+++ http.c	3 Mar 2003 06:45:27 -0000	1.122
 <at>  <at>  -716,7 +716,7  <at>  <at> 
   if(data->cookies) {
     co = Curl_cookie_getlist(data->cookies,
                              host, ppath,
-                             (conn->protocol&PROT_HTTPS?TRUE:FALSE));
+                             (bool)(conn->protocol&PROT_HTTPS?TRUE:FALSE));
   }
   if (data->change.proxy && *data->change.proxy &&
       !data->set.tunnel_thru_httpproxy &&

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
(Continue reading)

Daniel Stenberg | 3 Mar 23:32 2003
Picon
Picon

cvs: curl configure.in,1.120,1.121

Update of /cvsroot/curl/curl
In directory sc8-pr-cvs1:/tmp/cvs-serv2156

Modified Files:
	configure.in 
Log Message:
moved the disable-thread warning to the switch code so that the AIX 4.3
automatic disable won't cause a warning

Index: configure.in
===================================================================
RCS file: /cvsroot/curl/curl/configure.in,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -r1.120 -r1.121
--- configure.in	3 Mar 2003 22:30:25 -0000	1.120
+++ configure.in	3 Mar 2003 22:31:58 -0000	1.121
 <at>  <at>  -594,11 +594,11  <at>  <at> 
 AC_ARG_ENABLE(thread,dnl
 [  --disable-thread       tell configure to not look for thread-safe functions],
   OPT_THREAD=off
+  AC_MSG_WARN(libcurl will not get built using thread-safe functions)
 )

 if test X"$OPT_THREAD" = Xoff
 then
-  AC_MSG_WARN(libcurl will not get built using thread-safe functions)
   AC_DEFINE(DISABLED_THREADSAFE, 1, \
 Set to explicitly specify we don't want to use thread-safe functions)
 else
(Continue reading)

Daniel Stenberg | 3 Mar 23:23 2003
Picon
Picon

cvs: curl/lib hostip.c,1.83,1.84

Update of /cvsroot/curl/curl/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv30805/lib

Modified Files:
	hostip.c 
Log Message:
AIX 4.3 or later should use gethostbyname() and not the *_r() version.

Index: hostip.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/hostip.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -r1.83 -r1.84
--- hostip.c	4 Feb 2003 23:48:46 -0000	1.83
+++ hostip.c	3 Mar 2003 22:23:48 -0000	1.84
 <at>  <at>  -696,6 +696,19  <at>  <at> 
 #ifdef HAVE_GETHOSTBYNAME_R_3
     /* AIX, Digital Unix, HPUX 10, more? */

+    /* For AIX 4.3 or later, we don't use gethostbyname_r() at all, because of
+       the plain fact that it does not return unique full buffers on each
+       call, but instead several of the pointers in the hostent structs will
+       point to the same actual data! This have the unfortunate down-side that
+       our caching system breaks down horribly. Luckily for us though, AIX 4.3
+       and more recent versions have a completely thread-safe libc where all
+       the data is stored in thread-specific memory areas making calls to the
+       plain old gethostbyname() work fine even for multi-threaded programs.
+       
+       This AIX 4.3 or later detection is all made in the configure script.
(Continue reading)

Daniel Stenberg | 3 Mar 23:39 2003
Picon
Picon

cvs: curl/lib Makefile.b32,1.8,1.9 Makefile.b32.resp,1.6,1.7 Makefile.vc6,1.29,1.30

Update of /cvsroot/curl/curl/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv6240

Modified Files:
	Makefile.b32 Makefile.b32.resp Makefile.vc6 
Log Message:
Added share.obj

Index: Makefile.b32
===================================================================
RCS file: /cvsroot/curl/curl/lib/Makefile.b32,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Makefile.b32	3 Dec 2002 09:32:57 -0000	1.8
+++ Makefile.b32	3 Mar 2003 22:39:34 -0000	1.9
 <at>  <at>  -61,6 +61,7  <at>  <at> 
 	strtok.c \
 	connect.c \
         hash.c \
+        share.c \
         llist.c \
         multi.c \
         content_encoding.c

Index: Makefile.b32.resp
===================================================================
RCS file: /cvsroot/curl/curl/lib/Makefile.b32.resp,v
retrieving revision 1.6
retrieving revision 1.7
(Continue reading)

Daniel Stenberg | 3 Mar 23:30 2003
Picon
Picon

cvs: curl configure.in,1.119,1.120

Update of /cvsroot/curl/curl
In directory sc8-pr-cvs1:/tmp/cvs-serv601

Modified Files:
	configure.in 
Log Message:
Detect AIX 4.3 or later, and if found disable the check for the thread-safe
*_r() functions as they're not needed (and if fact mess things up for us).
Brought to our attention by the friendly Troels Walsted Hansen in bug report
#696217.

Index: configure.in
===================================================================
RCS file: /cvsroot/curl/curl/configure.in,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- configure.in	29 Jan 2003 13:16:03 -0000	1.119
+++ configure.in	3 Mar 2003 22:30:25 -0000	1.120
 <at>  <at>  -575,6 +575,22  <at>  <at> 

 dnl Default is to try the thread-safe versions of a few functions
 OPT_THREAD=on
+
+dnl detect AIX 4.3 or later
+dnl see full docs on this reasoning in the lib/hostip.c source file
+AC_MSG_CHECKING([AIX 4.3 or later])
+AC_PREPROC_IFELSE([
+#if defined(_AIX) && defined(_AIX43)
+printf("just fine");
(Continue reading)

Daniel Stenberg | 4 Mar 00:26 2003
Picon
Picon

cvs: curl maketgz,1.10,1.11

Update of /cvsroot/curl/curl
In directory sc8-pr-cvs1:/tmp/cvs-serv28800

Modified Files:
	maketgz 
Log Message:
output the md5sum as the last step

Index: maketgz
===================================================================
RCS file: /cvsroot/curl/curl/maketgz,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- maketgz	14 Oct 2002 07:39:50 -0000	1.10
+++ maketgz	3 Mar 2003 23:26:39 -0000	1.11
 <at>  <at>  -133,3 +133,4  <at>  <at> 
 echo ""
 ls -l $targz $bzip2 $zip

+md5sum $targz $bzip2 $zip

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com


Gmane