From 3f47aa8c37cf1ab86df03dcf3a91c6f7249bdc12 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sun, 9 Mar 2008 06:59:01 +0000 Subject: [PATCH] Fix some functions declared () rather than (void) (Ian Jackson) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4029 c046a42c-6fe2-441c-8c8c-71466251a162 --- block-vvfat.c | 4 ++-- darwin-user/qemu.h | 2 +- darwin-user/syscall.c | 8 ++++---- hw/alpha_palcode.c | 4 ++-- target-i386/helper.c | 2 +- target-i386/svm.h | 2 +- vl.c | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/block-vvfat.c b/block-vvfat.c index 873956d..a93fde9 100644 --- a/block-vvfat.c +++ b/block-vvfat.c @@ -53,7 +53,7 @@ #define stderr STDERR FILE* stderr = NULL; -static void checkpoint(); +static void checkpoint(void); #ifdef __MINGW32__ void nonono(const char* file, int line, const char* msg) { @@ -2813,7 +2813,7 @@ BlockDriver bdrv_vvfat = { }; #ifdef DEBUG -static void checkpoint() { +static void checkpoint(void) { assert(((mapping_t*)array_get(&(vvv->mapping), 0))->end == 2); check1(vvv); check2(vvv); diff --git a/darwin-user/qemu.h b/darwin-user/qemu.h index 41b57f8..7240f82 100644 --- a/darwin-user/qemu.h +++ b/darwin-user/qemu.h @@ -113,7 +113,7 @@ extern int loglevel; extern FILE *logfile; /* commpage.c */ -void commpage_init(); +void commpage_init(void); void do_commpage(void *cpu_env, int num, uint32_t arg1, uint32_t arg2, uint32_t arg3, uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7, uint32_t arg8); diff --git a/darwin-user/syscall.c b/darwin-user/syscall.c index f17e591..ae39f9a 100644 --- a/darwin-user/syscall.c +++ b/darwin-user/syscall.c @@ -417,7 +417,7 @@ long do_mach_syscall(void *cpu_env, int num, uint32_t arg1, uint32_t arg2, uint3 uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7, uint32_t arg8) { - extern uint32_t mach_reply_port(); + extern uint32_t mach_reply_port(void); long ret = 0; @@ -551,7 +551,7 @@ long do_thread_syscall(void *cpu_env, int num, uint32_t arg1, uint32_t arg2, uin uint32_t arg8) { extern uint32_t cthread_set_self(uint32_t); - extern uint32_t processor_facilities_used(); + extern uint32_t processor_facilities_used(void); long ret = 0; arg1 = tswap32(arg1); @@ -830,7 +830,7 @@ static inline void byteswap_timeval(struct timeval *t) } long do_unix_syscall_indirect(void *cpu_env, int num); -long do_sync(); +long do_sync(void); long do_exit(uint32_t arg1); long do_getlogin(char *out, uint32_t size); long do_open(char * arg1, uint32_t arg2, uint32_t arg3); @@ -996,7 +996,7 @@ long do_exit(uint32_t arg1) return -1; } -long do_sync() +long do_sync(void) { sync(); return 0; diff --git a/hw/alpha_palcode.c b/hw/alpha_palcode.c index 3bd2c54..50ce92c 100644 --- a/hw/alpha_palcode.c +++ b/hw/alpha_palcode.c @@ -56,7 +56,7 @@ pal_handler_t pal_handlers[] = { #if 0 /* One must explicitely check that the TB is valid and the FOE bit is reset */ -static void update_itb () +static void update_itb (void) { /* This writes into a temp register, not the actual one */ mtpr(TB_TAG); @@ -65,7 +65,7 @@ static void update_itb () mtpr(ITB_PTE); } -static void update_dtb (); +static void update_dtb (void); { mtpr(TB_CTL); /* This write into a temp register, not the actual one */ diff --git a/target-i386/helper.c b/target-i386/helper.c index 7306cbd..c0fb78f 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1670,7 +1670,7 @@ void helper_cmpxchg8b(void) CC_SRC = eflags; } -void helper_single_step() +void helper_single_step(void) { env->dr[6] |= 0x4000; raise_exception(EXCP01_SSTP); diff --git a/target-i386/svm.h b/target-i386/svm.h index 982d054..f99f47e 100644 --- a/target-i386/svm.h +++ b/target-i386/svm.h @@ -323,7 +323,7 @@ struct __attribute__ ((__packed__)) vmcb { /* function references */ -void helper_stgi(); +void helper_stgi(void); void vmexit(uint64_t exit_code, uint64_t exit_info_1); int svm_check_intercept_param(uint32_t type, uint64_t param); static inline int svm_check_intercept(unsigned int type) { diff --git a/vl.c b/vl.c index d371af7..e2bcb58 100644 --- a/vl.c +++ b/vl.c @@ -899,7 +899,7 @@ static struct qemu_alarm_timer alarm_timers[] = { {NULL, } }; -static void show_available_alarms() +static void show_available_alarms(void) { int i; -- 1.7.9.5