summaryrefslogtreecommitdiffhomepage
path: root/x-plane-plugin/plugin.c
diff options
context:
space:
mode:
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);