File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4
4
#include <string.h>
5
5
#include <stdlib.h>
6
6
#include <assert.h>
7
+ #include <stdio.h>
7
8
8
9
#include "internal.h"
9
10
#include "couch_btree.h"
@@ -1062,15 +1063,15 @@ void couchstore_free_local_document(LocalDoc *lDoc)
1062
1063
pthread_key_t os_err_key ;
1063
1064
pthread_once_t os_err_init = PTHREAD_ONCE_INIT ;
1064
1065
1065
- void os_error_destroy (void * err_ptr ) {
1066
+ static void os_error_destroy (void * err_ptr ) {
1066
1067
free (err_ptr );
1067
1068
}
1068
1069
1069
- void init_os_error_key () {
1070
+ static void init_os_error_key (void ) {
1070
1071
pthread_key_create (& os_err_key , os_error_destroy );
1071
1072
}
1072
1073
1073
- struct _os_error * get_os_error_store () {
1074
+ struct _os_error * get_os_error_store (void ) {
1074
1075
int once = pthread_once (& os_err_init , init_os_error_key );
1075
1076
assert (once == 0 );
1076
1077
void * ptr ;
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ extern "C" {
85
85
node_pointer * read_root (char * buf , int size );
86
86
void encode_root (char * buf , node_pointer * node );
87
87
88
- struct _os_error * get_os_error_store ();
88
+ struct _os_error * get_os_error_store (void );
89
89
90
90
extern pthread_key_t os_err_key ;
91
91
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ static int win_close(int fd) {
61
61
#define close_int win_close
62
62
#endif
63
63
64
- static inline void save_errno () {
64
+ static inline void save_errno (void ) {
65
65
get_os_error_store ()-> errno_err = errno ;
66
66
#ifdef WINDOWS
67
67
get_os_error_store ()-> win_err = 0 ;
You can’t perform that action at this time.
0 commit comments