summaryrefslogtreecommitdiffhomepage
path: root/x-plane-plugin/plugin.c
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-19 14:22:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-19 14:22:06 +0200
commit629d7221887f506f1542ec8970569fb48210dfdb (patch)
tree97a22558a2d9a626063862c91a9596f08acab5b7 /x-plane-plugin/plugin.c
parent0436e0c00df4c0e26c9691dc3d739402fdababc3 (diff)
xpl: pass -Wall -pedantic in gnuc89
Diffstat (limited to 'x-plane-plugin/plugin.c')
-rw-r--r--x-plane-plugin/plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c
index dd771ab5..1f30f04d 100644
--- a/x-plane-plugin/plugin.c
+++ b/x-plane-plugin/plugin.c
@@ -19,7 +19,7 @@
#define PLUGIN_API
#endif
-// using Wine name to ease things
+/* using Wine name to ease things */
#define WINE_SHM_NAME "facetracknoir-wine-shm"
#define WINE_MTX_NAME "facetracknoir-wine-mtx"
@@ -48,7 +48,7 @@ PortableLockedShm* PortableLockedShm_init(const char *shmName, const char *mutex
strncpy(shm_filename+1, shmName, NAME_MAX-2);
shm_filename[NAME_MAX-1] = '\0';
sprintf(shm_filename + strlen(shm_filename), "%ld\n", (long) getuid());
- //(void) shm_unlink(shm_filename);
+ /* (void) shm_unlink(shm_filename); */
self->fd = shm_open(shm_filename, O_RDWR | O_CREAT, 0600);
if (ftruncate(self->fd, mapSize) == 0)
@@ -60,7 +60,7 @@ PortableLockedShm* PortableLockedShm_init(const char *shmName, const char *mutex
void PortableLockedShm_free(PortableLockedShm* self)
{
- //(void) shm_unlink(shm_filename);
+ /*(void) shm_unlink(shm_filename);*/
(void) munmap(self->mem, self->size);
(void) close(self->fd);
free(self);