[xml] [PATCH] warning patches for 2.4.5



Hi.

Here are two trivial patches that remove warnings about
implicitly declared functions ...

catalog.c - getenv()
xmlcatalog.c - free()

Adding `#include <stdlib.h>' fixes both warnings.

--- libxml2-2.4.5/catalog.c.orig        Sat Sep  1 21:35:10 2001
+++ libxml2-2.4.5/catalog.c     Wed Sep 19 17:45:38 2001
@@ -28,6 +28,7 @@
 #include <fcntl.h>
 #endif
 #include <string.h>
+#include <stdlib.h>
 #include <libxml/xmlmemory.h>
 #include <libxml/hash.h>
 #include <libxml/uri.h>
--- libxml2-2.4.5/xmlcatalog.c.orig     Sat Aug 25 21:35:05 2001
+++ libxml2-2.4.5/xmlcatalog.c  Wed Sep 19 17:46:19 2001
@@ -9,6 +9,7 @@
 #include "libxml.h"
 
 #include <string.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <stdarg.h>
 
-- 

Art Haas

Attachment: pgptGoAll_ety.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]