Remove parentheses from return statements

No reason to use "return (x);" here. Refer to the GNU coding guidelines
for details. Created using following semantic patch:

    @@
    expression expr;
    @@

    - return (expr);
    + return expr;

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-11-02 19:30:54 +01:00
parent ce3f0ce76f
commit 6f01c7af97
14 changed files with 80 additions and 80 deletions

View File

@@ -252,7 +252,7 @@ getstring (WINDOW *win, char *str, int l, int x, int y)
if (st.pos < st.len) st.pos++;
break;
case ESCAPE: /* cancel editing */
return (GETSTRING_ESC);
return GETSTRING_ESC;
break;
default: /* insert one character */
c[0] = ch;
@@ -268,7 +268,7 @@ getstring (WINDOW *win, char *str, int l, int x, int y)
custom_remove_attr (win, ATTR_HIGHEST);
return (st.len == 0 ? GETSTRING_RET : GETSTRING_VALID);
return st.len == 0 ? GETSTRING_RET : GETSTRING_VALID;
}
/* Update an already existing string. */