Ticket #11560: 0002-Removed-stray-semicolons-CID-991577.patch

File 0002-Removed-stray-semicolons-CID-991577.patch, 1.2 KB (added by tgkokk, 5 years ago)
  • src/bin/gdb/gdb/remote-utils.c

    From be9d4f0a27708cfaba1cb468f682e243a9b4ba0a Mon Sep 17 00:00:00 2001
    From: Theodore Kokkoris <t.kokkoris@gmail.com>
    Date: Wed, 3 Dec 2014 15:18:50 +0000
    Subject: [PATCH] Removed stray semicolons (CID: 991577)
    
    ---
     src/bin/gdb/gdb/remote-utils.c | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/src/bin/gdb/gdb/remote-utils.c b/src/bin/gdb/gdb/remote-utils.c
    index 2f3032c..e569549 100644
    a b sr_scan_args (char *proto, char *args)  
    113113    return;
    114114
    115115  /* scan off white space.  */
    116   for (p = args; isspace (*p); ++p);;
     116  for (p = args; isspace (*p); ++p);
    117117
    118118  /* find end of device name.  */
    119   for (q = p; *q != '\0' && !isspace (*q); ++q);;
     119  for (q = p; *q != '\0' && !isspace (*q); ++q);
    120120
    121121  /* check for missing or empty device name.  */
    122122  CHECKDONE (p, q);
    sr_scan_args (char *proto, char *args)  
    137137  sr_set_debug (n);
    138138
    139139  /* scan off remaining white space.  */
    140   for (p = q; isspace (*p); ++p);;
     140  for (p = q; isspace (*p); ++p);
    141141
    142142  /* if not end of string, then there's unrecognized junk. */
    143143  if (*p != '\0')