summaryrefslogtreecommitdiff
path: root/src/common/socket.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-07 16:43:54 +0100
committerHaru <haru@dotalux.com>2016-02-24 20:57:53 +0100
commita79ab6c3d11c7d6fcd1f04400f50b93f72e570e1 (patch)
tree8f165c5992d1a3c35430d80e2b0a356514d55430 /src/common/socket.h
parentebe7347a6e67be6d7a6613089227fcb6647ccf22 (diff)
downloadhercules-a79ab6c3d11c7d6fcd1f04400f50b93f72e570e1.tar.gz
hercules-a79ab6c3d11c7d6fcd1f04400f50b93f72e570e1.tar.bz2
hercules-a79ab6c3d11c7d6fcd1f04400f50b93f72e570e1.tar.xz
hercules-a79ab6c3d11c7d6fcd1f04400f50b93f72e570e1.zip
Changed RFIFOP and WFIFOP to return const void * and void * respectively
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/socket.h')
-rw-r--r--src/common/socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/socket.h b/src/common/socket.h
index 29f3eb3d7..07c8608d8 100644
--- a/src/common/socket.h
+++ b/src/common/socket.h
@@ -47,8 +47,8 @@ struct config_setting_t;
sockt->realloc_writefifo((fd), (size)); \
} while(0)
-#define RFIFOP(fd,pos) (sockt->session[fd]->rdata + sockt->session[fd]->rdata_pos + (pos))
-#define WFIFOP(fd,pos) (sockt->session[fd]->wdata + sockt->session[fd]->wdata_size + (pos))
+#define RFIFOP(fd,pos) ((const void *)(sockt->session[fd]->rdata + sockt->session[fd]->rdata_pos + (pos)))
+#define WFIFOP(fd,pos) ((void *)(sockt->session[fd]->wdata + sockt->session[fd]->wdata_size + (pos)))
#define RFIFOB(fd,pos) (*(const uint8*)RFIFOP((fd),(pos)))
#define WFIFOB(fd,pos) (*(uint8*)WFIFOP((fd),(pos)))