cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] Substitution int32_t to unsigned int and curl_memory.h inclusion in ftp wildcardmatch feature

From: Pavel Raiskup <pavel_at_raiskup.cz>
Date: Thu, 13 May 2010 17:50:27 +0200

---
 include/curl/curl.h |    4 ++--
 lib/ftplistparser.c |    2 +-
 lib/wildcard.c      |    1 +
 3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/curl/curl.h b/include/curl/curl.h
index d59e01d..a2e26ba 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -231,7 +231,7 @@ struct curl_fileinfo {
   char *filename;
   curlfiletype filetype;
   time_t time;
-  int32_t perm;
+  unsigned int perm;
   int uid;
   int gid;
   curl_off_t size;
@@ -246,7 +246,7 @@ struct curl_fileinfo {
     char *target; /* pointer to the target filename of a symlink */
   } strings;
 
-  int32_t flags;
+  unsigned int flags;
 
   /* used internally */
   char * b_data;
diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c
index 9d42e8f..aa34d00 100644
--- a/lib/ftplistparser.c
+++ b/lib/ftplistparser.c
@@ -465,7 +465,7 @@ size_t ftp_parselist(char *buffer, size_t size, size_t nmemb, void *connptr)
           }
         }
         else if(parser->item_length == 10) {
-          int32_t perm;
+          unsigned int perm;
           if(c != ' ') {
             PL_ERROR(conn, CURLE_FTP_BAD_FILE_LIST);
             return bufflen;
diff --git a/lib/wildcard.c b/lib/wildcard.c
index 43ac546..e55d431 100644
--- a/lib/wildcard.c
+++ b/lib/wildcard.c
@@ -24,6 +24,7 @@
 #include "llist.h"
 #include "fileinfo.h"
 
+#include "curl_memory.h"
 /* The last #include file should be: */
 #include "memdebug.h"
 
-- 
1.7.1
------------7X0OZ9phrzAyklxhTFPPh9
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
------------7X0OZ9phrzAyklxhTFPPh9--
Received on 2001-09-17