This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Remove extraneous semicolons in remote-utils.c


2003-02-04  Fred Fish  <fnf@intrinsity.com>

	* remote-utils.c (sr_scan_args): Remove extraneous semicolons.

Index: remote-utils.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-utils.c,v
retrieving revision 1.13
diff -c -p -r1.13 remote-utils.c
*** remote-utils.c	23 Mar 2002 17:38:12 -0000	1.13
--- remote-utils.c	5 Feb 2003 05:43:37 -0000
*************** sr_scan_args (char *proto, char *args)
*** 113,122 ****
      return;
  
    /* scan off white space.  */
!   for (p = args; isspace (*p); ++p);;
  
    /* find end of device name.  */
!   for (q = p; *q != '\0' && !isspace (*q); ++q);;
  
    /* check for missing or empty device name.  */
    CHECKDONE (p, q);
--- 113,122 ----
      return;
  
    /* scan off white space.  */
!   for (p = args; isspace (*p); ++p);
  
    /* find end of device name.  */
!   for (q = p; *q != '\0' && !isspace (*q); ++q);
  
    /* check for missing or empty device name.  */
    CHECKDONE (p, q);
*************** sr_scan_args (char *proto, char *args)
*** 137,143 ****
    sr_set_debug (n);
  
    /* scan off remaining white space.  */
!   for (p = q; isspace (*p); ++p);;
  
    /* if not end of string, then there's unrecognized junk. */
    if (*p != '\0')
--- 137,143 ----
    sr_set_debug (n);
  
    /* scan off remaining white space.  */
!   for (p = q; isspace (*p); ++p);
  
    /* if not end of string, then there's unrecognized junk. */
    if (*p != '\0')


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]