summaryrefslogtreecommitdiffstats
path: root/common/t-percent.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-02-04 12:57:53 +0100
committerWerner Koch <wk@gnupg.org>2011-02-04 12:57:53 +0100
commitb008274afdbe375b32a7e66dbd073e200f6f0587 (patch)
tree219e239d39cf06be3f03aa82fb572080ac163a15 /common/t-percent.c
parentLet autogen.sh check the git config (diff)
downloadgnupg2-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.c25
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;
}
-