aboutsummaryrefslogtreecommitdiffstats
path: root/tools/shmtest.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-05-24 18:38:35 +0000
committerDavid Shaw <[email protected]>2003-05-24 18:38:35 +0000
commitea35e3b65f5e741ce2feebd53831681f9e807884 (patch)
tree43d449ca34f21b926a5233000897bc3cc5d8bfcd /tools/shmtest.c
parent* bithelp.h, des.c, random.c, rndlinux.c, sha1.c, blowfish.c, elgamal.c, (diff)
downloadgnupg-ea35e3b65f5e741ce2feebd53831681f9e807884.tar.gz
gnupg-ea35e3b65f5e741ce2feebd53831681f9e807884.zip
* bftest.c, crlf.c, mk-tdata.c, mpicalc.c, shmtest.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--tools/shmtest.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/tools/shmtest.c b/tools/shmtest.c
index fceade1e1..d8bf72b61 100644
--- a/tools/shmtest.c
+++ b/tools/shmtest.c
@@ -19,11 +19,11 @@
#include <signal.h>
#include <unistd.h>
#ifdef HAVE_SYS_IPC_H
- #include <sys/types.h>
- #include <sys/ipc.h>
+#include <sys/types.h>
+#include <sys/ipc.h>
#endif
#ifdef HAVE_SYS_SHM_H
- #include <sys/shm.h>
+#include <sys/shm.h>
#endif
#include "util.h"
#include "ttyio.h"
@@ -55,15 +55,15 @@ strusage( int level )
static void
i18n_init(void)
{
- #ifdef ENABLE_NLS
- #ifdef HAVE_LC_MESSAGES
+#ifdef ENABLE_NLS
+#ifdef HAVE_LC_MESSAGES
setlocale( LC_MESSAGES, "" );
- #else
+#else
setlocale( LC_ALL, "" );
- #endif
+#endif
bindtextdomain( PACKAGE, G10_LOCALEDIR );
textdomain( PACKAGE );
- #endif
+#endif
}
@@ -114,9 +114,9 @@ main(int argc, char **argv)
log_set_name("shmtest");
i18n_init();
- #ifndef USE_SHM_COPROCESSING
+#ifndef USE_SHM_COPROCESSING
log_info("SHM_COPRPOCESSING is not available\n");
- #else
+#else
if( argc < 1 )
my_usage();
@@ -199,8 +199,7 @@ main(int argc, char **argv)
log_error("pclose failed\n");
return 0;
- #endif
+#endif
}
-
#endif