]> granicus.if.org Git - curl/commitdiff
code style: remove wrong uses of multiple spaces
authorDaniel Stenberg <daniel@haxx.se>
Tue, 12 Sep 2017 07:29:01 +0000 (09:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 12 Sep 2017 11:54:54 +0000 (13:54 +0200)
Closes #1878

include/curl/curl.h
lib/ftp.c
lib/hostip.c
lib/http.c
lib/mprintf.c
lib/splay.h
lib/transfer.c

index 6803a2e3cc0a23b276d76df281baaa364e1ac49a..1eb82f5c68591e167b610de6449c57ed3c3a8654 100644 (file)
@@ -356,7 +356,7 @@ typedef size_t (*curl_read_callback)(char *buffer,
                                       size_t nitems,
                                       void *instream);
 
-typedef enum  {
+typedef enum {
   CURLSOCKTYPE_IPCXN,  /* socket created for a specific IP connection */
   CURLSOCKTYPE_ACCEPT, /* socket created by accept() call */
   CURLSOCKTYPE_LAST    /* never use */
@@ -398,7 +398,7 @@ typedef enum {
   CURLIOE_LAST           /* never use */
 } curlioerr;
 
-typedef enum  {
+typedef enum {
   CURLIOCMD_NOP,         /* no operation */
   CURLIOCMD_RESTARTREAD, /* restart the read stream from start */
   CURLIOCMD_LAST         /* never use */
index 1452d47c4552b9e16509b6b8ee545682bec5857e..4860509f34fabd3f27f85b96cc889e8b64b67272 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1469,7 +1469,7 @@ static CURLcode ftp_state_list(struct connectdata *conn)
       return CURLE_OUT_OF_MEMORY;
 
     /* Check if path does not end with /, as then we cut off the file part */
-    if(lstArg[strlen(lstArg) - 1] != '/')  {
+    if(lstArg[strlen(lstArg) - 1] != '/') {
 
       /* chop off the file part if format is dir/dir/file */
       slashPos = strrchr(lstArg, '/');
index 33b49895cdbcfa6057c7aef46f114539fe4757b3..1a18a3ed79e851a4c29315bf4ba8c8e9162b7ec8 100644 (file)
@@ -306,7 +306,7 @@ fetch_addr(struct connectdata *conn,
   /* See if its already in our dns cache */
   dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1);
 
-  if(dns && (data->set.dns_cache_timeout != -1))  {
+  if(dns && (data->set.dns_cache_timeout != -1)) {
     /* See whether the returned entry is stale. Done before we release lock */
     struct hostcache_prune_data user;
 
index 8dfea7b70584ab9459a82ad5a1c2191cfa0887f5..ea3e8af3577865d5ade0d137f62454695b7e37d0 100644 (file)
@@ -2079,7 +2079,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
   }
 
 #ifndef CURL_DISABLE_PROXY
-  if(conn->bits.httpproxy && !conn->bits.tunnel_proxy)  {
+  if(conn->bits.httpproxy && !conn->bits.tunnel_proxy) {
     /* Using a proxy but does not tunnel through it */
 
     /* The path sent to the proxy is in fact the entire URL. But if the remote
@@ -2624,7 +2624,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
          its size. */
       if(conn->httpversion != 20 &&
          !data->state.expect100header &&
-         (postsize < MAX_INITIAL_POST_SIZE))  {
+         (postsize < MAX_INITIAL_POST_SIZE)) {
         /* if we don't use expect: 100  AND
            postsize is less than MAX_INITIAL_POST_SIZE
 
index 9a9eb16e6653ce9774bbde7f3497e8eafe809f03..d2d91d7438783905bc83c2757b828cb6ce00734e 100644 (file)
@@ -107,7 +107,7 @@ static const char upper_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
   } WHILE_FALSE
 
 /* Data type to read from the arglist */
-typedef enum  {
+typedef enum {
   FORMAT_UNKNOWN = 0,
   FORMAT_STRING,
   FORMAT_PTR,
index 0273bad385d375a7e2e92e6737cf9b81724a524c..4612ec271f0603c40e1d0511575b6a1576870d20 100644 (file)
@@ -54,8 +54,8 @@ int Curl_splayremovebyaddr(struct Curl_tree *t,
                            struct Curl_tree *removenode,
                            struct Curl_tree **newroot);
 
-#define Curl_splaycomparekeys(i,j) ( ((i.tv_sec)  < (j.tv_sec))  ? -1 : \
-                                   ( ((i.tv_sec)  > (j.tv_sec))  ?  1 : \
+#define Curl_splaycomparekeys(i,j) ( ((i.tv_sec)  < (j.tv_sec)) ? -1 : \
+                                   ( ((i.tv_sec)  > (j.tv_sec)) ?  1 : \
                                    ( ((i.tv_usec) < (j.tv_usec)) ? -1 : \
                                    ( ((i.tv_usec) > (j.tv_usec)) ?  1 : 0))))
 
index 87366fa8cd56d8d27b7abe6e0a7ac079b4f24eb2..792d5aff872fbf3062f3e66008f21a290c1a5d95 100644 (file)
@@ -1774,7 +1774,7 @@ CURLcode Curl_follow(struct Curl_easy *data,
     }
   }
 
-  if(!is_absolute_url(newurl))  {
+  if(!is_absolute_url(newurl)) {
     /***
      *DANG* this is an RFC 2068 violation. The URL is supposed
      to be absolute and this doesn't seem to be that!