w3c-libwww-5.4.0 typo in HTSQL.c reentrant code

Rémi COHEN-SCALI <[email protected]>
Newsgroups gmane.comp.lib.libwww
Organization Sun Microsystems
Message-ID <[email protected]>
Hello

Here is a patch to fix some typos in HTSQL.c when --enable-reentrant si 
activated.

Regards


Remi Cohen-Scali
w3c-libwww-5.4.0-HTSQL-reentrant-tm-struct-var.patch (text/plain, 970 B)
diff -purNwbB w3c-libwww-5.4.0/ChangeLog~ w3c-libwww-5.4.0/ChangeLog
--- w3c-libwww-5.4.0/ChangeLog~	Fri Jun  7 12:27:02 2002
+++ w3c-libwww-5.4.0/ChangeLog	Thu Jul  4 17:57:19 2002
@@ -1,3 +1,8 @@
+2002-07-04  Remi Cohen-Scali  <[email protected]>
+
+	* Library/src/HTSQL.c (sql_datetimestr): Fixed a typo
+	when reentrant code compiled. A missing 'tm' for a struct tm *.
+
 Changes with libwww 5.3.2
 
 2002-06-06	Jose Kahan <[email protected]>
diff -purNwbB w3c-libwww-5.4.0/Library/src/HTSQL.c~ w3c-libwww-5.4.0/Library/src/HTSQL.c
--- w3c-libwww-5.4.0/Library/src/HTSQL.c~	Mon Feb 22 23:10:12 1999
+++ w3c-libwww-5.4.0/Library/src/HTSQL.c	Thu Jul  4 17:44:06 2002
@@ -38,7 +38,7 @@ PRIVATE int sql_datetimestr (char ** ptr
     if (t > 0 && *ptr) {
 #if defined(HT_REENTRANT) || defined(SOLARIS)
 	struct tm gmt;
-	struct * pgmt = gmtime_r(&t, &gmt);
+	struct tm *pgmt = gmtime_r(&t, &gmt);
 #else
 	struct tm *pgmt = gmtime(&t);
 #endif /* SOLARIS || HT_REENTRANT */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.