aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-09 06:59:01 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-09 06:59:01 +0000
commit3f47aa8c37cf1ab86df03dcf3a91c6f7249bdc12 (patch)
treed9d3e5f4462517b179c20412b5ccccdab6fc660a /darwin-user
parent Convert branches and conditional moves to TCG (diff)
downloadqemu-kvm-3f47aa8c37cf1ab86df03dcf3a91c6f7249bdc12.tar.gz
qemu-kvm-3f47aa8c37cf1ab86df03dcf3a91c6f7249bdc12.tar.bz2
qemu-kvm-3f47aa8c37cf1ab86df03dcf3a91c6f7249bdc12.zip
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
Diffstat (limited to 'darwin-user')
-rw-r--r--darwin-user/qemu.h2
-rw-r--r--darwin-user/syscall.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/darwin-user/qemu.h b/darwin-user/qemu.h
index 41b57f851..7240f8208 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 f17e59101..ae39f9a93 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;