src: use int foo(void) for functions that don't take parameters

This commit is contained in:
Bert Belder 2017-09-04 07:13:00 +02:00
parent 2cd69e976a
commit 0cd8b52b18
5 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ if(WIN32)
endif()
if(MSVC)
add_compile_options(/Wall /wd4201 /wd4206 /wd4242 /wd4244 /wd4255 /wd4267 /wd4310 /wd4706 /wd4710 /wd4711 /wd4820 /wd4996)
add_compile_options(/Wall /wd4201 /wd4206 /wd4242 /wd4244 /wd4267 /wd4310 /wd4706 /wd4710 /wd4711 /wd4820 /wd4996)
else()
add_compile_options(-Wall)
endif()

View File

@ -59,7 +59,7 @@ struct epoll_event {
extern "C" {
#endif
EPOLL_EXTERN epoll_t epoll_create();
EPOLL_EXTERN epoll_t epoll_create(void);
EPOLL_EXTERN int epoll_close(epoll_t epoll_hnd);

View File

@ -35,7 +35,7 @@ typedef struct epoll_port_data epoll_port_data_t;
typedef struct epoll_io_req epoll_io_req_t;
typedef struct epoll_sock_data epoll_sock_data_t;
static int epoll__initialize();
static int epoll__initialize(void);
static SOCKET epoll__get_peer_socket(epoll_port_data_t* port_data,
WSAPROTOCOL_INFOW* protocol_info);
static SOCKET epoll__create_peer_socket(HANDLE iocp,
@ -85,7 +85,7 @@ RB_GENERATE_STATIC(epoll_sock_data_tree,
tree_entry,
epoll__compare_sock_data)
epoll_t epoll_create() {
epoll_t epoll_create(void) {
epoll_port_data_t* port_data;
HANDLE iocp;
@ -549,7 +549,7 @@ int epoll_close(epoll_t port_handle) {
return_success(0);
}
int epoll__initialize() {
int epoll__initialize(void) {
int r;
WSADATA wsa_data;

View File

@ -8,7 +8,7 @@
NTDLL_IMPORT_LIST(X)
#undef X
int nt_initialize() {
int nt_initialize(void) {
HMODULE ntdll;
ntdll = LoadLibraryW(L"ntdll.dll");

View File

@ -4,7 +4,7 @@
#include "ntstatus.h"
#include "win.h"
int nt_initialize();
int nt_initialize(void);
typedef struct _IO_STATUS_BLOCK {
union {