diff options
author | Werner Koch <[email protected]> | 2011-02-04 11:57:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-02-04 11:57:53 +0000 |
commit | b008274afdbe375b32a7e66dbd073e200f6f0587 (patch) | |
tree | 219e239d39cf06be3f03aa82fb572080ac163a15 /common/t-stringhelp.c | |
parent | Let autogen.sh check the git config (diff) | |
download | gnupg-b008274afdbe375b32a7e66dbd073e200f6f0587.tar.gz gnupg-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-stringhelp.c')
-rw-r--r-- | common/t-stringhelp.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/common/t-stringhelp.c b/common/t-stringhelp.c index 0c921b03d..d7b25e9b0 100644 --- a/common/t-stringhelp.c +++ b/common/t-stringhelp.c @@ -42,14 +42,14 @@ gethome (void) if (!home_buffer) { char *home = getenv("HOME"); - + if(home) home_buffer = xstrdup (home); #if defined(HAVE_GETPWUID) && defined(HAVE_PWD_H) else { struct passwd *pwd; - + pwd = getpwuid (getuid()); if (pwd) home_buffer = xstrdup (pwd->pw_dir); @@ -65,10 +65,10 @@ test_percent_escape (void) { char *result; static struct { - const char *extra; - const char *value; + const char *extra; + const char *value; const char *expected; - } tests[] = + } tests[] = { { NULL, "", "" }, { NULL, "%", "%25" }, @@ -183,7 +183,7 @@ test_strconcat (void) fail (0); else if (errno != EINVAL) fail (0); - + #if __GNUC__ < 4 /* gcc 4.0 has a sentinel attribute. */ out = strconcat (NULL); if (!out || *out) @@ -322,10 +322,10 @@ test_make_filename_try (void) "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "1", "2", NULL); - if (!out || strcmp (out, - "1/2/3/4/5/6/7/8/9/10/" - "1/2/3/4/5/6/7/8/9/10/" - "1/2/3/4/5/6/7/8/9/10/" + if (!out || strcmp (out, + "1/2/3/4/5/6/7/8/9/10/" + "1/2/3/4/5/6/7/8/9/10/" + "1/2/3/4/5/6/7/8/9/10/" "1/2")) fail (0); xfree (out); @@ -411,4 +411,3 @@ main (int argc, char **argv) xfree (home_buffer); return 0; } - |