Commit 34d40326 authored by mseaborn@chromium.org's avatar mseaborn@chromium.org

NaCl: Fix nacl_io library to build with -Wstrict-prototypes

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3114
TEST=compile "nacl_io_untrusted" ninja target

Review URL: https://codereview.chromium.org/320103004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276023 0039d316-1c4b-4281-b951-d872f2087c98
parent cb8da01a
......@@ -12,11 +12,11 @@
static pthread_key_t s_h_errno_key;
static pthread_once_t s_h_errno_once = PTHREAD_ONCE_INIT;
static void __h_errno_create() {
static void __h_errno_create(void) {
pthread_key_create(&s_h_errno_key, NULL);
}
int *__h_errno_location() {
int *__h_errno_location(void) {
int* h_errno_ptr;
pthread_once(&s_h_errno_once, __h_errno_create);
h_errno_ptr = (int *) pthread_getspecific(s_h_errno_key);
......@@ -31,7 +31,7 @@ int *__h_errno_location() {
}
#if defined(__BIONIC__)
int *__get_h_errno() {
int *__get_h_errno(void) {
return __h_errno_location();
}
#endif
......
......@@ -46,7 +46,7 @@ int ki_init(void* kernel_proxy);
* use this to save the current state before calling ki_init(). The
* pushed state is restored in the next call to ki_uninit().
*/
int ki_push_state_for_testing();
int ki_push_state_for_testing(void);
int ki_init_ppapi(void* kernel_proxy,
PP_Instance instance,
......@@ -62,8 +62,8 @@ int ki_init_interface(void* kernel_proxy, void* pepper_interface);
nacl_io::KernelProxy* ki_get_proxy();
#endif
int ki_is_initialized();
void ki_uninit();
int ki_is_initialized(void);
void ki_uninit(void);
int ki_chdir(const char* path);
void ki_exit(int status);
......
......@@ -55,8 +55,8 @@ typedef ssize_t write_ssize_t;
EXTERN_C_BEGIN
void kernel_wrap_init();
void kernel_wrap_uninit();
void kernel_wrap_init(void);
void kernel_wrap_uninit(void);
int NAME(access)(const char* path, int amode) NOTHROW;
int NAME(chdir)(const char* path) NOTHROW;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment