aboutsummaryrefslogtreecommitdiff
path: root/gdb/standalone.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-02-22 01:58:53 +0000
committerFred Fish <fnf@specifix.com>1996-02-22 01:58:53 +0000
commit6a6a552a2968ef5e551b82cc52b6080781f63a8d (patch)
tree714bb139821abb79a354039093e9e73ad468676f /gdb/standalone.c
parentd16ee16d581d32abee69c00cfb277d278ac9586e (diff)
downloadgdb-6a6a552a2968ef5e551b82cc52b6080781f63a8d.zip
gdb-6a6a552a2968ef5e551b82cc52b6080781f63a8d.tar.gz
gdb-6a6a552a2968ef5e551b82cc52b6080781f63a8d.tar.bz2
* standalone.c (open, _initialize_standalone): Fix obvious typos
reported by Martin Pool <martin@citr.uq.oz.au>.
Diffstat (limited to 'gdb/standalone.c')
-rw-r--r--gdb/standalone.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/standalone.c b/gdb/standalone.c
index 52c8ee2..13fc476 100644
--- a/gdb/standalone.c
+++ b/gdb/standalone.c
@@ -141,8 +141,7 @@ open (filename, modes)
return -1;
}
- for (next - files_start; * (int *) next;
- next += * (int *) next)
+ for (next = files_start; * (int *) next; next += * (int *) next)
{
if (!STRCMP (next + 4, filename))
{
@@ -584,9 +583,7 @@ _initialize_standalone ()
/* Find the end of the data on files. */
- for (next - files_start; * (int *) next;
- next += * (int *) next)
- {}
+ for (next = files_start; * (int *) next; next += * (int *) next) {}
/* That is where free storage starts for sbrk to give out. */
next_free = next;