summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-23 07:53:24 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-24 23:58:22 +0100
commitdbadaebfc4e9d453232795f54d4fe5618cf8e84d (patch)
tree5899d1f99ce0d767d28d753e6e6552896d47d01f /src
parentbc7e08471c1884a5100b6e0513a006c263ec3c6b (diff)
downloadcurl-dbadaebfc4e9d453232795f54d4fe5618cf8e84d.tar.gz
checksrc: code style: use 'char *name' style
Diffstat (limited to 'src')
-rw-r--r--src/tool_getpass.h4
-rw-r--r--src/tool_operate.c8
-rw-r--r--src/tool_urlglob.c2
-rw-r--r--src/tool_writeenv.c6
4 files changed, 10 insertions, 10 deletions
diff --git a/src/tool_getpass.h b/src/tool_getpass.h
index 95dd77935..f639596fc 100644
--- a/src/tool_getpass.h
+++ b/src/tool_getpass.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, 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
@@ -30,7 +30,7 @@
/*
* Returning NULL will abort the continued operation!
*/
-char* getpass_r(const char *prompt, char* buffer, size_t buflen);
+char *getpass_r(const char *prompt, char *buffer, size_t buflen);
#endif
#endif /* HEADER_CURL_TOOL_GETPASS_H */
diff --git a/src/tool_operate.c b/src/tool_operate.c
index b115ad94e..94d87fecf 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -143,8 +143,8 @@ static bool is_fatal_error(CURLcode code)
* and CD/DVD images should be either a STREAM_LF format or a fixed format.
*
*/
-static curl_off_t vms_realfilesize(const char * name,
- const struct_stat * stat_buf)
+static curl_off_t vms_realfilesize(const char *name,
+ const struct_stat *stat_buf)
{
char buffer[8192];
curl_off_t count;
@@ -174,8 +174,8 @@ static curl_off_t vms_realfilesize(const char * name,
* if not to call a routine to get the correct size.
*
*/
-static curl_off_t VmsSpecialSize(const char * name,
- const struct_stat * stat_buf)
+static curl_off_t VmsSpecialSize(const char *name,
+ const struct_stat *stat_buf)
{
switch(stat_buf->st_fab_rfm) {
case FAB$C_VAR:
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c
index 08e5d094c..1258b1f08 100644
--- a/src/tool_urlglob.c
+++ b/src/tool_urlglob.c
@@ -421,7 +421,7 @@ static CURLcode glob_parse(URLGlob *glob, char *pattern,
return res;
}
-CURLcode glob_url(URLGlob** glob, char* url, unsigned long *urlnum,
+CURLcode glob_url(URLGlob **glob, char *url, unsigned long *urlnum,
FILE *error)
{
/*
diff --git a/src/tool_writeenv.c b/src/tool_writeenv.c
index c1bfcbe2f..198847eef 100644
--- a/src/tool_writeenv.c
+++ b/src/tool_writeenv.c
@@ -5,7 +5,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
@@ -33,7 +33,7 @@
static const struct
{
- const char * name;
+ const char *name;
CURLINFO id;
enum {
writeenv_NONE,
@@ -59,7 +59,7 @@ static const struct
{NULL, 0, writeenv_NONE}
};
-static void internalSetEnv(const char * name, char * value)
+static void internalSetEnv(const char *name, char *value)
{
/* Add your OS-specific code here. */
#ifdef __riscos__