Loading docs/examples/ghiper.c +2 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,8 @@ typedef struct _SockInfo { } SockInfo; /* Die if we get a bad CURLMcode somewhere */ static void mcode_or_die(const char *where, CURLMcode code) { static void mcode_or_die(const char *where, CURLMcode code) { if(CURLM_OK != code) { const char *s; switch (code) { Loading lib/curl_gethostname.c +2 −2 Original line number Diff line number Diff line Loading @@ -48,8 +48,8 @@ * For libcurl static library release builds no overriding takes place. */ int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen) { int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen) { #ifndef HAVE_GETHOSTNAME /* Allow compilation and return failure when unavailable */ Loading lib/formdata.c +2 −1 Original line number Diff line number Diff line Loading @@ -1427,7 +1427,8 @@ int Curl_FormInit(struct Form *form, struct FormData *formdata) * */ # define fopen_read vmsfopenread static FILE * vmsfopenread(const char *file, const char *mode) { static FILE * vmsfopenread(const char *file, const char *mode) { struct_stat statbuf; int result; Loading lib/http2.c +4 −2 Original line number Diff line number Diff line Loading @@ -225,7 +225,8 @@ int Curl_http2_ver(char *p, size_t len) https://tools.ietf.org/html/rfc7540#page-77 nghttp2_error_code enums are identical. */ const char *Curl_http2_strerror(uint32_t err) { const char *Curl_http2_strerror(uint32_t err) { #ifndef NGHTTP2_HAS_HTTP2_STRERROR const char *str[] = { "NO_ERROR", /* 0x0 */ Loading Loading @@ -1578,7 +1579,8 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex, * Parse the tokens as separated by comma and surrounded by whitespace. * Returns TRUE if found or FALSE if not. */ static bool contains_trailers(const char *p, size_t len) { static bool contains_trailers(const char *p, size_t len) { const char *end = p + len; for(;;) { for(; p != end && (*p == ' ' || *p == '\t'); ++p) Loading lib/security.c +2 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,8 @@ name_to_level(const char *name) /* Convert a protocol |level| to its char representation. We take an int to catch programming mistakes. */ static char level_to_char(int level) { static char level_to_char(int level) { switch(level) { case PROT_CLEAR: return 'C'; Loading Loading
docs/examples/ghiper.c +2 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,8 @@ typedef struct _SockInfo { } SockInfo; /* Die if we get a bad CURLMcode somewhere */ static void mcode_or_die(const char *where, CURLMcode code) { static void mcode_or_die(const char *where, CURLMcode code) { if(CURLM_OK != code) { const char *s; switch (code) { Loading
lib/curl_gethostname.c +2 −2 Original line number Diff line number Diff line Loading @@ -48,8 +48,8 @@ * For libcurl static library release builds no overriding takes place. */ int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen) { int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen) { #ifndef HAVE_GETHOSTNAME /* Allow compilation and return failure when unavailable */ Loading
lib/formdata.c +2 −1 Original line number Diff line number Diff line Loading @@ -1427,7 +1427,8 @@ int Curl_FormInit(struct Form *form, struct FormData *formdata) * */ # define fopen_read vmsfopenread static FILE * vmsfopenread(const char *file, const char *mode) { static FILE * vmsfopenread(const char *file, const char *mode) { struct_stat statbuf; int result; Loading
lib/http2.c +4 −2 Original line number Diff line number Diff line Loading @@ -225,7 +225,8 @@ int Curl_http2_ver(char *p, size_t len) https://tools.ietf.org/html/rfc7540#page-77 nghttp2_error_code enums are identical. */ const char *Curl_http2_strerror(uint32_t err) { const char *Curl_http2_strerror(uint32_t err) { #ifndef NGHTTP2_HAS_HTTP2_STRERROR const char *str[] = { "NO_ERROR", /* 0x0 */ Loading Loading @@ -1578,7 +1579,8 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex, * Parse the tokens as separated by comma and surrounded by whitespace. * Returns TRUE if found or FALSE if not. */ static bool contains_trailers(const char *p, size_t len) { static bool contains_trailers(const char *p, size_t len) { const char *end = p + len; for(;;) { for(; p != end && (*p == ' ' || *p == '\t'); ++p) Loading
lib/security.c +2 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,8 @@ name_to_level(const char *name) /* Convert a protocol |level| to its char representation. We take an int to catch programming mistakes. */ static char level_to_char(int level) { static char level_to_char(int level) { switch(level) { case PROT_CLEAR: return 'C'; Loading