Cleanup variables in http.[ch]
Quite some variables defined as extern in http.h are only used in http.c, and some others, only defined in http.c, were not static. Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
							parent
							
								
									ace72086bb
								
							
						
					
					
						commit
						cc3530e8f3
					
				
							
								
								
									
										28
									
								
								http.c
								
								
								
								
							
							
						
						
									
										28
									
								
								http.c
								
								
								
								
							|  | @ -4,31 +4,31 @@ int data_received; | ||||||
| int active_requests = 0; | int active_requests = 0; | ||||||
|  |  | ||||||
| #ifdef USE_CURL_MULTI | #ifdef USE_CURL_MULTI | ||||||
| int max_requests = -1; | static int max_requests = -1; | ||||||
| CURLM *curlm; | static CURLM *curlm; | ||||||
| #endif | #endif | ||||||
| #ifndef NO_CURL_EASY_DUPHANDLE | #ifndef NO_CURL_EASY_DUPHANDLE | ||||||
| CURL *curl_default; | static CURL *curl_default; | ||||||
| #endif | #endif | ||||||
| char curl_errorstr[CURL_ERROR_SIZE]; | char curl_errorstr[CURL_ERROR_SIZE]; | ||||||
|  |  | ||||||
| int curl_ssl_verify = -1; | static int curl_ssl_verify = -1; | ||||||
| char *ssl_cert = NULL; | static char *ssl_cert = NULL; | ||||||
| #if LIBCURL_VERSION_NUM >= 0x070902 | #if LIBCURL_VERSION_NUM >= 0x070902 | ||||||
| char *ssl_key = NULL; | static char *ssl_key = NULL; | ||||||
| #endif | #endif | ||||||
| #if LIBCURL_VERSION_NUM >= 0x070908 | #if LIBCURL_VERSION_NUM >= 0x070908 | ||||||
| char *ssl_capath = NULL; | static char *ssl_capath = NULL; | ||||||
| #endif | #endif | ||||||
| char *ssl_cainfo = NULL; | static char *ssl_cainfo = NULL; | ||||||
| long curl_low_speed_limit = -1; | static long curl_low_speed_limit = -1; | ||||||
| long curl_low_speed_time = -1; | static long curl_low_speed_time = -1; | ||||||
| int curl_ftp_no_epsv = 0; | static int curl_ftp_no_epsv = 0; | ||||||
| char *curl_http_proxy = NULL; | static char *curl_http_proxy = NULL; | ||||||
|  |  | ||||||
| struct curl_slist *pragma_header; | static struct curl_slist *pragma_header; | ||||||
|  |  | ||||||
| struct active_request_slot *active_queue_head = NULL; | static struct active_request_slot *active_queue_head = NULL; | ||||||
|  |  | ||||||
| size_t fread_buffer(void *ptr, size_t eltsize, size_t nmemb, | size_t fread_buffer(void *ptr, size_t eltsize, size_t nmemb, | ||||||
| 			   struct buffer *buffer) | 			   struct buffer *buffer) | ||||||
|  |  | ||||||
							
								
								
									
										18
									
								
								http.h
								
								
								
								
							
							
						
						
									
										18
									
								
								http.h
								
								
								
								
							|  | @ -80,24 +80,6 @@ extern void http_cleanup(void); | ||||||
| extern int data_received; | extern int data_received; | ||||||
| extern int active_requests; | extern int active_requests; | ||||||
|  |  | ||||||
| #ifndef NO_CURL_EASY_DUPHANDLE |  | ||||||
| extern CURL *curl_default; |  | ||||||
| #endif |  | ||||||
| extern char curl_errorstr[CURL_ERROR_SIZE]; | extern char curl_errorstr[CURL_ERROR_SIZE]; | ||||||
|  |  | ||||||
| extern int curl_ssl_verify; |  | ||||||
| extern char *ssl_cert; |  | ||||||
| #if LIBCURL_VERSION_NUM >= 0x070902 |  | ||||||
| extern char *ssl_key; |  | ||||||
| #endif |  | ||||||
| #if LIBCURL_VERSION_NUM >= 0x070908 |  | ||||||
| extern char *ssl_capath; |  | ||||||
| #endif |  | ||||||
| extern char *ssl_cainfo; |  | ||||||
| extern long curl_low_speed_limit; |  | ||||||
| extern long curl_low_speed_time; |  | ||||||
|  |  | ||||||
| extern struct curl_slist *pragma_header; |  | ||||||
| extern struct curl_slist *no_range_header; |  | ||||||
|  |  | ||||||
| #endif /* HTTP_H */ | #endif /* HTTP_H */ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Mike Hommey
						Mike Hommey