C operator precendence makes most of these parens unnecessary
so remove them.
We don't remove the parens around the "&&" expressions even
though they aren't necessary, because without them GCC will
warn "suggest parentheses around && within ||". Better to
have a warning-free build than shave off a few bytes at any
cost.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
}
// pass through unreserved characters
- if (((*src >= 'a') && (*src <= 'z')) ||
- ((*src >= 'A') && (*src <= 'Z')) ||
- ((*src >= '0') && (*src <= '9')) ||
- (*src == '-') ||
- (*src == '_') ||
- (*src == '.') ||
- (*src == '~'))
+ if ((*src >= 'a' && *src <= 'z') ||
+ (*src >= 'A' && *src <= 'Z') ||
+ (*src >= '0' && *src <= '9') ||
+ *src == '-' ||
+ *src == '_' ||
+ *src == '.' ||
+ *src == '~')
{
*dest++ = *src;
non_space = dest;