projects
/
tedtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix warnings on x86_64
[tedtools.git]
/
shmem.c
diff --git
a/shmem.c
b/shmem.c
index
933dc4b
..
696db8d
100644
(file)
--- a/
shmem.c
+++ b/
shmem.c
@@
-68,7
+68,7
@@
attachSharedMemory(int key, char *path, int size, int rdonly) {
flags = ( rdonly ) ? SHM_RDONLY : 0;
shm = shmat(shm_id, 0, flags); /* Attach SHM segment */
- if (
(int)shm ==
-1 )
+ if (
shm == (void*)
-1 )
tlog(TL_CRIT|TL_EXIT, "shmat error: %s", strerror(errno));
return shm;