diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-11-23 08:30:18 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-24 23:58:22 +0100 |
commit | 8657c268e1938c4bd9200b7f5ab69ba156310403 (patch) | |
tree | 99d43e4150f9f57a1b62f3439da028fa38e55769 /lib/vtls | |
parent | ec0a5c96ac2f31d09651f04c8b24a30d1f6fa118 (diff) |
checksrc: white space edits to comply to stricter checksrc
Diffstat (limited to 'lib/vtls')
-rw-r--r-- | lib/vtls/darwinssl.c | 2 | ||||
-rw-r--r-- | lib/vtls/gtls.c | 2 | ||||
-rw-r--r-- | lib/vtls/nss.c | 2 | ||||
-rw-r--r-- | lib/vtls/openssl.c | 4 | ||||
-rw-r--r-- | lib/vtls/schannel.c | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c index 705bff912..16e104c89 100644 --- a/lib/vtls/darwinssl.c +++ b/lib/vtls/darwinssl.c @@ -197,7 +197,7 @@ static OSStatus SocketWrite(SSLConnectionRef connection, do { length = write(sock, - (char*)dataPtr + bytesSent, + (char *)dataPtr + bytesSent, dataLen - bytesSent); } while((length > 0) && ( (bytesSent += length) < dataLen) ); diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index b45be37e1..c2aca111b 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -68,7 +68,7 @@ #define GNUTLS_POINTER_TO_INT_CAST(p) ((int) (long) (p)) #endif #ifndef GNUTLS_INT_TO_POINTER_CAST -#define GNUTLS_INT_TO_POINTER_CAST(i) ((void*) (long) (i)) +#define GNUTLS_INT_TO_POINTER_CAST(i) ((void *) (long) (i)) #endif /* Enable GnuTLS debugging by defining GTLSDEBUG */ diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index 6bb50f3e0..461694fc5 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -539,7 +539,7 @@ static CURLcode nss_load_crl(const char *crlfilename) goto fail; /* place a trailing zero right after the visible data */ - body = (char*)filedata.data; + body = (char *)filedata.data; body[--filedata.len] = '\0'; body = strstr(body, "-----BEGIN"); diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 624f868ac..1d7892550 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -295,7 +295,7 @@ static int ssl_ui_reader(UI *ui, UI_STRING *uis) switch(UI_get_string_type(uis)) { case UIT_PROMPT: case UIT_VERIFY: - password = (const char*)UI_get0_user_data(ui); + password = (const char *)UI_get0_user_data(ui); if(password && (UI_get_input_flags(uis) & UI_INPUT_FLAG_DEFAULT_PWD)) { UI_set_result(ui, uis, password); return 1; @@ -1567,7 +1567,7 @@ static void ssl_tls_trace(int direction, int ssl_ver, int content_type, else tls_rt_name = ""; - msg_type = *(char*)buf; + msg_type = *(char *)buf; msg_name = ssl_msg_type(ssl_ver, msg_type); txt_len = snprintf(ssl_buf, sizeof(ssl_buf), "%s (%s), %s, %s (%d):\n", diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index 147797d4c..a72753e9a 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -278,12 +278,12 @@ schannel_connect_step1(struct connectdata *conn, int sockindex) /* The first four bytes will be an unsigned int indicating number of bytes of data in the rest of the the buffer. */ - extension_len = (unsigned int*)(&alpn_buffer[cur]); + extension_len = (unsigned int *)(&alpn_buffer[cur]); cur += sizeof(unsigned int); /* The next four bytes are an indicator that this buffer will contain ALPN data, as opposed to NPN, for example. */ - *(unsigned int*)&alpn_buffer[cur] = + *(unsigned int *)&alpn_buffer[cur] = SecApplicationProtocolNegotiationExt_ALPN; cur += sizeof(unsigned int); |