diff options
author | David Shaw <[email protected]> | 2003-05-24 16:53:14 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-05-24 16:53:14 +0000 |
commit | c84fdfbe620ed3e9d4d3f6c03b3fcea8a1685c72 (patch) | |
tree | dc24a02a957c942f43de558c2424dc897d7f1345 /util/fileutil.c | |
parent | * cipher.h, i18n.h, iobuf.h, memory.h, mpi.h, types.h, util.h: Edit all (diff) | |
download | gnupg-c84fdfbe620ed3e9d4d3f6c03b3fcea8a1685c72.tar.gz gnupg-c84fdfbe620ed3e9d4d3f6c03b3fcea8a1685c72.zip |
* argparse.c, dotlock.c, fileutil.c, iobuf.c, miscutil.c,
simple-gettext.c, errors.c, http.c, memory.c, secmem.c, ttyio.c: Edit all
preprocessor instructions to remove whitespace before the '#'. This is
not required by C89, but there are some compilers out there that don't
like it.
Diffstat (limited to 'util/fileutil.c')
-rw-r--r-- | util/fileutil.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/util/fileutil.c b/util/fileutil.c index 4a609138a..c36488640 100644 --- a/util/fileutil.c +++ b/util/fileutil.c @@ -71,10 +71,10 @@ make_dirname(const char *filepath) char *p; if ( !(p=strrchr(filepath, DIRSEP_C)) ) - #ifdef HAVE_DRIVE_LETTERS +#ifdef HAVE_DRIVE_LETTERS if ( !(p=strrchr(filepath, '\\')) ) if ( !(p=strrchr(filepath, ':')) ) - #endif +#endif { return m_strdup(EXTSEP_S); } @@ -138,11 +138,11 @@ compare_filenames( const char *a, const char *b ) * resolve symlinks? */ #ifndef __riscos__ - #ifdef HAVE_DRIVE_LETTERS +#ifdef HAVE_DRIVE_LETTERS return ascii_strcasecmp(a,b); - #else +#else return strcmp(a,b); - #endif +#endif #else /* __riscos__ */ int c = 0; char *abuf, *bbuf; @@ -231,5 +231,3 @@ leave: iobuf_close( a ); return rc; } - - |