diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-03-07 10:41:34 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-03-07 10:41:34 +0000 |
commit | 3e6ef9e42e8f3af7712957851bcca5e34ff3b650 (patch) | |
tree | 1d9adce42f7701c6f6870ce996f887644699b70e /gdb/objc-lang.c | |
parent | dbb8534f737da4685f1a99cde891e1d7303a6336 (diff) | |
download | gdb-3e6ef9e42e8f3af7712957851bcca5e34ff3b650.zip gdb-3e6ef9e42e8f3af7712957851bcca5e34ff3b650.tar.gz gdb-3e6ef9e42e8f3af7712957851bcca5e34ff3b650.tar.bz2 |
minor reformatting in objc-lang.c:selectors_info
gdb/ChangeLog:
* objc-lang.c (selectors_info): Minor reformatting.
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r-- | gdb/objc-lang.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index 280751f..90b881f 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -743,19 +743,19 @@ selectors_info (char *regexp, int from_tty) { QUIT; name = SYMBOL_NATURAL_NAME (msymbol); - if (name && - (name[0] == '-' || name[0] == '+') && - name[1] == '[') /* Got a method name. */ + if (name + && (name[0] == '-' || name[0] == '+') + && name[1] == '[') /* Got a method name. */ { /* Filter for class/instance methods. */ if (plusminus && name[0] != plusminus) continue; /* Find selector part. */ - name = (char *) strchr(name+2, ' '); + name = (char *) strchr (name+2, ' '); if (regexp == NULL || re_exec(++name) != 0) { char *mystart = name; - char *myend = (char *) strchr(mystart, ']'); + char *myend = (char *) strchr (mystart, ']'); if (myend && (myend - mystart > maxlen)) maxlen = myend - mystart; /* Get longest selector. */ |