aboutsummaryrefslogtreecommitdiff
path: root/sim/common/syscall.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-02-19 22:29:37 -0500
committerMike Frysinger <vapier@gentoo.org>2014-03-04 02:54:50 -0500
commit1a8a700e3a6fd88bcd5b3988a1f738da463f5b1b (patch)
tree50769fb7ad5265349ca9713535b7345beab1e698 /sim/common/syscall.c
parentf97a10f1dca64077b71e3fc2a83caa8fe1434664 (diff)
downloadgdb-1a8a700e3a6fd88bcd5b3988a1f738da463f5b1b.zip
gdb-1a8a700e3a6fd88bcd5b3988a1f738da463f5b1b.tar.gz
gdb-1a8a700e3a6fd88bcd5b3988a1f738da463f5b1b.tar.bz2
sim: convert old style prototypes
Most of these prototypes have been killed off, but we have a few left in the sim tree. Clean them up so we can enable the -W flag for it.
Diffstat (limited to 'sim/common/syscall.c')
-rw-r--r--sim/common/syscall.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/sim/common/syscall.c b/sim/common/syscall.c
index 10d58aa..397cd80 100644
--- a/sim/common/syscall.c
+++ b/sim/common/syscall.c
@@ -76,12 +76,8 @@ char *simulator_sysroot = "";
The result is 0 for success or a host errno value. */
int
-cb_get_string (cb, sc, buf, buflen, addr)
- host_callback *cb;
- CB_SYSCALL *sc;
- char *buf;
- int buflen;
- TADDR addr;
+cb_get_string (host_callback *cb, CB_SYSCALL *sc, char *buf, int buflen,
+ TADDR addr)
{
char *p, *pend;
@@ -110,11 +106,7 @@ cb_get_string (cb, sc, buf, buflen, addr)
If an error occurs, no buffer is left malloc'd. */
static int
-get_path (cb, sc, addr, bufp)
- host_callback *cb;
- CB_SYSCALL *sc;
- TADDR addr;
- char **bufp;
+get_path (host_callback *cb, CB_SYSCALL *sc, TADDR addr, char **bufp)
{
char *buf = xmalloc (MAX_PATH_LEN);
int result;
@@ -147,9 +139,7 @@ get_path (cb, sc, addr, bufp)
/* Perform a system call on behalf of the target. */
CB_RC
-cb_syscall (cb, sc)
- host_callback *cb;
- CB_SYSCALL *sc;
+cb_syscall (host_callback *cb, CB_SYSCALL *sc)
{
TWORD result = 0, errcode = 0;