diff options
author | Werner Koch <wk@gnupg.org> | 2011-02-04 12:57:53 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-02-04 12:57:53 +0100 |
commit | b008274afdbe375b32a7e66dbd073e200f6f0587 (patch) | |
tree | 219e239d39cf06be3f03aa82fb572080ac163a15 /common/t-percent.c | |
parent | Let autogen.sh check the git config (diff) | |
download | gnupg2-b008274afdbe375b32a7e66dbd073e200f6f0587.tar.xz gnupg2-b008274afdbe375b32a7e66dbd073e200f6f0587.zip |
Nuked almost all trailing white space.post-nuke-of-trailing-ws
We better do this once and for all instead of cluttering all future
commits with diffs of trailing white spaces. In the majority of cases
blank or single lines are affected and thus this change won't disturb
a git blame too much. For future commits the pre-commit scripts
checks that this won't happen again.
Diffstat (limited to 'common/t-percent.c')
-rw-r--r-- | common/t-percent.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/common/t-percent.c b/common/t-percent.c index b8641b90b..c148c228f 100644 --- a/common/t-percent.c +++ b/common/t-percent.c @@ -37,31 +37,31 @@ test_percent_plus_escape (void) const char *string; const char *expect; } tbl[] = { - { + { "", - "" - }, { + "" + }, { "a", "a", - }, { + }, { " ", "+", - }, { + }, { " ", "++" - }, { + }, { "+ +", "%2B+%2B" - }, { + }, { "\" \"", "%22+%22" - }, { + }, { "%22", "%2522" - }, { + }, { "%% ", "%25%25+" - }, { + }, { "\n ABC\t", "%0A+ABC%09" }, { NULL, NULL } @@ -69,7 +69,7 @@ test_percent_plus_escape (void) char *buf, *buf2; int i; size_t len; - + for (i=0; tbl[i].string; i++) { buf = percent_plus_escape (tbl[i].string); @@ -105,11 +105,10 @@ main (int argc, char **argv) { (void)argc; (void)argv; - + /* FIXME: We escape_unescape is not tested - only percent_plus_unescape. */ test_percent_plus_escape (); return 0; } - |