Skip to content

Commit 96b01b5

Browse files
committed
Quiet clang warnings about non-static decls
1 parent 11d12f1 commit 96b01b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

http.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ typedef enum {
103103
} http_method;
104104

105105
/* Components (and postitions) of the http_request tuple type */
106-
enum {
106+
typedef enum {
107107
REQ_METHOD = 0,
108108
REQ_URI = 1,
109109
REQ_HEADERS = 2,
@@ -112,15 +112,15 @@ enum {
112112
} http_request_type;
113113

114114
/* Components (and postitions) of the http_response tuple type */
115-
enum {
115+
typedef enum {
116116
RESP_STATUS = 0,
117117
RESP_CONTENT_TYPE = 1,
118118
RESP_HEADERS = 2,
119119
RESP_CONTENT = 3
120120
} http_response_type;
121121

122122
/* Components (and postitions) of the http_header tuple type */
123-
enum {
123+
typedef enum {
124124
HEADER_FIELD = 0,
125125
HEADER_VALUE = 1
126126
} http_header_type;
@@ -208,7 +208,7 @@ static size_t http_writeback(void *contents, size_t size, size_t nmemb, void *us
208208
static size_t http_readback(void *buffer, size_t size, size_t nitems, void *instream);
209209

210210
/* Global variables */
211-
CURL * g_http_handle = NULL;
211+
static CURL * g_http_handle = NULL;
212212

213213
/*
214214
* Interrupt support is dependent on CURLOPT_XFERINFOFUNCTION which

0 commit comments

Comments
 (0)