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/mischelp.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/mischelp.c')
-rw-r--r-- | common/mischelp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/common/mischelp.c b/common/mischelp.c index 5c8f1cfab..57688d767 100644 --- a/common/mischelp.c +++ b/common/mischelp.c @@ -53,13 +53,13 @@ int same_file_p (const char *name1, const char *name2) { int yes; - + /* First try a shortcut. */ if (!compare_filenames (name1, name2)) yes = 1; else { -#ifdef HAVE_W32_SYSTEM +#ifdef HAVE_W32_SYSTEM HANDLE file1, file2; BY_HANDLE_FILE_INFORMATION info1, info2; @@ -72,7 +72,7 @@ same_file_p (const char *name1, const char *name2) file1 = INVALID_HANDLE_VALUE; jnlib_free (wname); } -#else +#else file1 = CreateFile (name1, 0, 0, NULL, OPEN_EXISTING, 0, NULL); #endif if (file1 == INVALID_HANDLE_VALUE) @@ -106,7 +106,7 @@ same_file_p (const char *name1, const char *name2) } #else /*!HAVE_W32_SYSTEM*/ struct stat info1, info2; - + yes = (!stat (name1, &info1) && !stat (name2, &info2) && info1.st_dev == info2.st_dev && info1.st_ino == info2.st_ino); #endif /*!HAVE_W32_SYSTEM*/ @@ -180,7 +180,7 @@ timegm (struct tm *tm) } } if (old_zone) - putenv (old_zone); + putenv (old_zone); } else gnupg_unsetenv("TZ"); @@ -190,4 +190,3 @@ timegm (struct tm *tm) #endif } #endif /*!HAVE_TIMEGM*/ - |