summaryrefslogtreecommitdiffhomepage
path: root/x-plane-plugin/plugin.c
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-19 14:18:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-19 14:18:27 +0200
commit4496e10f1315a72c915871801d95788884bfdb92 (patch)
tree09a711d168e16b9be95c82c6b96a5c05c054983a /x-plane-plugin/plugin.c
parent635874182399703bb1ec2fc714eb49d0186bc61c (diff)
xpl: dead code. mmap(2) (void*)-1 on failure
Diffstat (limited to 'x-plane-plugin/plugin.c')
-rw-r--r--x-plane-plugin/plugin.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c
index eae2bf0b..dd771ab5 100644
--- a/x-plane-plugin/plugin.c
+++ b/x-plane-plugin/plugin.c
@@ -108,11 +108,7 @@ PLUGIN_API int XPluginStart ( char * outName, char * outSignature, char * outDes
if (view_x && view_y && view_z && view_heading && view_pitch) {
lck_posix = PortableLockedShm_init(WINE_SHM_NAME, WINE_MTX_NAME, sizeof(WineSHM));
if (lck_posix->mem == (void*)-1) {
- fprintf(stderr, "opentrack failed to init SHM #1!\n");
- return 0;
- }
- if (lck_posix->mem == NULL) {
- fprintf(stderr, "opentrack failed to init SHM #2!\n");
+ fprintf(stderr, "opentrack failed to init SHM!\n");
return 0;
}
shm_posix = (WineSHM*) lck_posix->mem;