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/miscutil.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 '')
-rw-r--r-- | util/miscutil.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/miscutil.c b/util/miscutil.c index e1735cd59..42b2b3a88 100644 --- a/util/miscutil.c +++ b/util/miscutil.c @@ -25,7 +25,7 @@ #include <time.h> #include <ctype.h> #ifdef HAVE_LANGINFO_H - #include <langinfo.h> +#include <langinfo.h> #endif #include "types.h" #include "util.h" @@ -143,9 +143,9 @@ const char * asctimestamp( u32 stamp ) { static char buffer[50]; - #if defined (HAVE_STRFTIME) && defined (HAVE_NL_LANGINFO) +#if defined (HAVE_STRFTIME) && defined (HAVE_NL_LANGINFO) static char fmt[50]; - #endif +#endif struct tm *tp; time_t atime = stamp; @@ -155,23 +155,23 @@ asctimestamp( u32 stamp ) } tp = localtime( &atime ); - #ifdef HAVE_STRFTIME - #if defined(HAVE_NL_LANGINFO) +#ifdef HAVE_STRFTIME +#if defined(HAVE_NL_LANGINFO) mem2str( fmt, nl_langinfo(D_T_FMT), DIM(fmt)-3 ); if( strstr( fmt, "%Z" ) == NULL ) strcat( fmt, " %Z"); strftime( buffer, DIM(buffer)-1, fmt, tp ); - #else +#else /* fixme: we should check whether the locale appends a " %Z" * These locales from glibc don't put the " %Z": * fi_FI hr_HR ja_JP lt_LT lv_LV POSIX ru_RU ru_SU sv_FI sv_SE zh_CN */ strftime( buffer, DIM(buffer)-1, "%c %Z", tp ); - #endif +#endif buffer[DIM(buffer)-1] = 0; - #else +#else mem2str( buffer, asctime(tp), DIM(buffer) ); - #endif +#endif return buffer; } |