Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb fix some empty bodies.



details:   https://anonhg.NetBSD.org/src/rev/2c2996dbe6e6
branches:  trunk
changeset: 770291:2c2996dbe6e6
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 11 15:10:17 2011 +0000

description:
fix some empty bodies.

diffstat:

 external/gpl3/gdb/dist/gdb/ui-file.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r fa59771fe307 -r 2c2996dbe6e6 external/gpl3/gdb/dist/gdb/ui-file.c
--- a/external/gpl3/gdb/dist/gdb/ui-file.c      Tue Oct 11 14:50:15 2011 +0000
+++ b/external/gpl3/gdb/dist/gdb/ui-file.c      Tue Oct 11 15:10:17 2011 +0000
@@ -532,7 +532,7 @@
                    _("stdio_file_write: bad magic number"));
   /* Calling error crashes when we are called from the exception framework.  */
   if (fwrite (buf, length_buf, 1, stdio->file))
-    ;
+    return;
 }
 
 static void
@@ -545,7 +545,7 @@
                    _("stdio_file_fputs: bad magic number"));
   /* Calling error crashes when we are called from the exception framework.  */
   if (fputs (linebuffer, stdio->file))
-    ;
+    return;
 }
 
 static int



Home | Main Index | Thread Index | Old Index