aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-15 03:16:17 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-15 03:16:17 +0000
commit028f6515424e832ee10a1e4cb1f96ea241e2acae (patch)
treec8ce68621a3ed2425b8dde4e2f523cbae0bf11fe /sim/common/callback.c
parent7f35e991971df570411a2688b948cd72adb4cf90 (diff)
downloadgdb-028f6515424e832ee10a1e4cb1f96ea241e2acae.zip
gdb-028f6515424e832ee10a1e4cb1f96ea241e2acae.tar.gz
gdb-028f6515424e832ee10a1e4cb1f96ea241e2acae.tar.bz2
sim: common: trim trailing whitespace
Diffstat (limited to 'sim/common/callback.c')
-rw-r--r--sim/common/callback.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c
index f811304..9bc8019 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -102,7 +102,7 @@ static int wrap PARAMS ((host_callback *, int));
/* Set the callback copy of errno from what we see now. */
-static int
+static int
wrap (p, val)
host_callback *p;
int val;
@@ -114,7 +114,7 @@ wrap (p, val)
/* Make sure the FD provided is ok. If not, return non-zero
and set errno. */
-static int
+static int
fdbad (p, fd)
host_callback *p;
int fd;
@@ -127,7 +127,7 @@ fdbad (p, fd)
return 0;
}
-static int
+static int
fdmap (p, fd)
host_callback *p;
int fd;
@@ -135,7 +135,7 @@ fdmap (p, fd)
return p->fdmap[fd];
}
-static int
+static int
os_close (p, fd)
host_callback *p;
int fd;
@@ -223,7 +223,7 @@ os_poll_quit (p)
{
return 1;
}
- else
+ else
{
sim_cb_eprintf (p, "CTRL-A to quit, CTRL-B to quit harder\n");
}
@@ -243,7 +243,7 @@ os_poll_quit (p)
#define os_poll_quit 0
#endif /* defined(__GO32__) || defined(_MSC_VER) */
-static int
+static int
os_get_errno (p)
host_callback *p;
{
@@ -251,7 +251,7 @@ os_get_errno (p)
}
-static int
+static int
os_isatty (p, fd)
host_callback *p;
int fd;
@@ -266,7 +266,7 @@ os_isatty (p, fd)
return result;
}
-static int
+static int
os_lseek (p, fd, off, way)
host_callback *p;
int fd;
@@ -282,7 +282,7 @@ os_lseek (p, fd, off, way)
return result;
}
-static int
+static int
os_open (p, name, flags)
host_callback *p;
const char *name;
@@ -308,7 +308,7 @@ os_open (p, name, flags)
return -1;
}
-static int
+static int
os_read (p, fd, buf, len)
host_callback *p;
int fd;
@@ -365,7 +365,7 @@ os_read (p, fd, buf, len)
return result;
}
-static int
+static int
os_read_stdin (p, buf, len)
host_callback *p;
char *buf;
@@ -374,7 +374,7 @@ os_read_stdin (p, buf, len)
return wrap (p, read (0, buf, len));
}
-static int
+static int
os_write (p, fd, buf, len)
host_callback *p;
int fd;
@@ -446,7 +446,7 @@ os_write (p, fd, buf, len)
return result;
}
-static int
+static int
os_write_stdout (p, buf, len)
host_callback *p ATTRIBUTE_UNUSED;
const char *buf;
@@ -462,7 +462,7 @@ os_flush_stdout (p)
fflush (stdout);
}
-static int
+static int
os_write_stderr (p, buf, len)
host_callback *p ATTRIBUTE_UNUSED;
const char *buf;
@@ -478,7 +478,7 @@ os_flush_stderr (p)
fflush (stderr);
}
-static int
+static int
os_rename (p, f1, f2)
host_callback *p;
const char *f1;
@@ -496,7 +496,7 @@ os_system (p, s)
return wrap (p, system (s));
}
-static long
+static long
os_time (p, t)
host_callback *p;
long *t;
@@ -505,7 +505,7 @@ os_time (p, t)
}
-static int
+static int
os_unlink (p, f1)
host_callback *p;
const char *f1;
@@ -587,7 +587,7 @@ os_lstat (p, file, buf)
#endif
}
-static int
+static int
os_ftruncate (p, fd, len)
host_callback *p;
int fd;
@@ -844,7 +844,7 @@ host_callback default_callback =
0, /* open_map */
0, /* signal_map */
0, /* stat_map */
-
+
/* Defaults expected to be overridden at initialization, where needed. */
BFD_ENDIAN_UNKNOWN, /* target_endian */
4, /* target_sizeof_int */