summaryrefslogtreecommitdiff
path: root/ipc.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-02-25 02:38:52 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-02-25 02:38:52 +0100
commit8470374cba7df0e70653d95c4f336a4082c68d82 (patch)
treec19e6dbf96fae4d4229bc7fc79fd3b0d5edeebe4 /ipc.c
parent5afdf12572bee4ddf5a7b136d94fde024a01f642 (diff)
downloadstrace-8470374cba7df0e70653d95c4f336a4082c68d82.tar.gz
strace-8470374cba7df0e70653d95c4f336a4082c68d82.tar.bz2
strace-8470374cba7df0e70653d95c4f336a4082c68d82.tar.xz
Cleanup after non-Linux code removal.
Conditions such as defined(LINUX) are always true now, defined(FREEBSD) etc are always false. When if directive has them as subexpressions, it can be simplified. Another trivial changes here are fixes for directive indentation. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'ipc.c')
-rw-r--r--ipc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc.c b/ipc.c
index 963537e..d8757c1 100644
--- a/ipc.c
+++ b/ipc.c
@@ -62,7 +62,7 @@
#define SEM_INFO 19
#endif
-#if defined LINUX && !defined IPC_64
+#if !defined IPC_64
# define IPC_64 0x100
#endif
@@ -421,11 +421,11 @@ int sys_shmat(struct tcb *tcp)
if (syserror(tcp))
return 0;
/* HPPA does not use an IPC multiplexer on Linux. */
-#if defined(LINUX) && !defined(HPPA)
+#if !defined(HPPA)
if (umove(tcp, tcp->u_arg[2], &raddr) < 0)
return RVAL_NONE;
tcp->u_rval = raddr;
-#endif /* LINUX */
+#endif
return RVAL_HEX;
}
return 0;