]> granicus.if.org Git - curl/commitdiff
Philip Gladstone's 64-bit issues corrected.
authorDaniel Stenberg <daniel@haxx.se>
Sun, 17 Feb 2002 14:55:35 +0000 (14:55 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 17 Feb 2002 14:55:35 +0000 (14:55 +0000)
Reminder for the future: when we're using malloc() we MUST include <stdlib.h>
as otherwise 64bit archs go bananas.

Bug report #517687

lib/hash.c
lib/llist.c

index b6f9d76c07e0f384b611a81a3f4c0e3fe83abef5..315cd731f5c32826bcbfe64b0bd2fb426201279d 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___ 
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 2001, Daniel Stenberg, <daniel@haxx.se>, et al
+ * Copyright (C) 2002, Daniel Stenberg, <daniel@haxx.se>, et al
  *
  * In order to be useful for every potential user, curl and libcurl are
  * dual-licensed under the MPL and the MIT/X-derivate licenses.
@@ -24,7 +24,7 @@
 #include "setup.h"
 
 #include <string.h>
-
+#include <stdlib.h>
 #include "hash.h"
 #include "llist.h"
 
index 9103ff254be91e28ef364bc56a2a7e5b9cc0d6a1..0d969aeed87dae6661a2209d673ae16ce8e0339e 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___ 
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 2001, Daniel Stenberg, <daniel@haxx.se>, et al
+ * Copyright (C) 2002, Daniel Stenberg, <daniel@haxx.se>, et al
  *
  * In order to be useful for every potential user, curl and libcurl are
  * dual-licensed under the MPL and the MIT/X-derivate licenses.
@@ -23,8 +23,8 @@
 
 #include "setup.h"
 
-
 #include <string.h>
+#include <stdlib.h>
 
 #include "llist.h"