From 6a6a552a2968ef5e551b82cc52b6080781f63a8d Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Thu, 22 Feb 1996 01:58:53 +0000 Subject: [PATCH] * standalone.c (open, _initialize_standalone): Fix obvious typos reported by Martin Pool . --- gdb/ChangeLog | 5 +++++ gdb/standalone.c | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 50564218059..76fe07cb601 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 21 19:00:21 1996 Fred Fish + + * standalone.c (open, _initialize_standalone): Fix obvious typos + reported by Martin Pool . + Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com) * solib.c (solib_create_inferior_hook): Fix thinko. diff --git a/gdb/standalone.c b/gdb/standalone.c index 52c8ee2d9d2..13fc4768b4e 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; -- 2.30.2