diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_cb_hdr.c | 2 | ||||
-rw-r--r-- | src/tool_doswin.c | 4 | ||||
-rw-r--r-- | src/tool_urlglob.c | 6 | ||||
-rw-r--r-- | src/tool_urlglob.h | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c index fc1419e7f..3891b073b 100644 --- a/src/tool_cb_hdr.c +++ b/src/tool_cb_hdr.c @@ -47,7 +47,7 @@ size_t tool_header_cb(void *ptr, size_t size, size_t nmemb, void *userdata) struct OutStruct *heads = hdrcbdata->heads; const char *str = ptr; const size_t cb = size * nmemb; - const char *end = (char*)ptr + cb; + const char *end = (char *)ptr + cb; char *url = NULL; /* diff --git a/src/tool_doswin.c b/src/tool_doswin.c index aed657a6a..eb3b29c46 100644 --- a/src/tool_doswin.c +++ b/src/tool_doswin.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -615,7 +615,7 @@ SANITIZEcode rename_if_reserved_dos_device_name(char **const sanitized, char **__crt0_glob_function(char *arg) { (void)arg; - return (char**)0; + return (char **)0; } #endif /* MSDOS && (__DJGPP__ || __GO32__) */ diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c index 1258b1f08..23fc7f39e 100644 --- a/src/tool_urlglob.c +++ b/src/tool_urlglob.c @@ -44,7 +44,7 @@ static CURLcode glob_fixed(URLGlob *glob, char *fixed, size_t len) pat->content.Set.ptr_s = 0; pat->globindex = -1; - pat->content.Set.elements = malloc(sizeof(char*)); + pat->content.Set.elements = malloc(sizeof(char *)); if(!pat->content.Set.elements) return GLOBERROR("out of memory", 0, CURLE_OUT_OF_MEMORY); @@ -118,14 +118,14 @@ static CURLcode glob_set(URLGlob *glob, char **patternp, *buf = '\0'; if(pat->content.Set.elements) { char **new_arr = realloc(pat->content.Set.elements, - (pat->content.Set.size + 1) * sizeof(char*)); + (pat->content.Set.size + 1) * sizeof(char *)); if(!new_arr) return GLOBERROR("out of memory", 0, CURLE_OUT_OF_MEMORY); pat->content.Set.elements = new_arr; } else - pat->content.Set.elements = malloc(sizeof(char*)); + pat->content.Set.elements = malloc(sizeof(char *)); if(!pat->content.Set.elements) return GLOBERROR("out of memory", 0, CURLE_OUT_OF_MEMORY); diff --git a/src/tool_urlglob.h b/src/tool_urlglob.h index c3be948f8..82d9d46d6 100644 --- a/src/tool_urlglob.h +++ b/src/tool_urlglob.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -68,9 +68,9 @@ typedef struct { size_t pos; /* column position of error or 0 */ } URLGlob; -CURLcode glob_url(URLGlob**, char*, unsigned long *, FILE *); +CURLcode glob_url(URLGlob**, char *, unsigned long *, FILE *); CURLcode glob_next_url(char **, URLGlob *); -CURLcode glob_match_url(char **, char*, URLGlob *); +CURLcode glob_match_url(char **, char *, URLGlob *); void glob_cleanup(URLGlob* glob); #endif /* HEADER_CURL_TOOL_URLGLOB_H */ |