summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2013-09-18 16:02:42 -0400
committerNathan Straz <nstraz@redhat.com>2013-09-19 10:26:32 -0400
commit486049502c9156e1309a81651f014f2d4fd4450e (patch)
treec9683a308af9a3f3ecf2f43ea1b6b04b7fa14bc8
parente67d6e11c13131a9922be45a264d3cb111452aeb (diff)
downloadqarsh-486049502c9156e1309a81651f014f2d4fd4450e.zip
qarsh-486049502c9156e1309a81651f014f2d4fd4450e.tar.gz
qarsh-486049502c9156e1309a81651f014f2d4fd4450e.tar.xz
Clean up compiler warning on psbuf
-rw-r--r--sockutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sockutil.c b/sockutil.c
index 05aa0bc..4020ed4 100644
--- a/sockutil.c
+++ b/sockutil.c
@@ -106,12 +106,12 @@ recv_packet(int fd)
{
char buf[QARSH_MAX_PACKET_SIZE];
uint32_t packetsize;
- char *psbuf = &packetsize;
+ void *psbuf = &packetsize;
int bufused = 0;
int ret = 0;
do {
- if ((ret = read(fd, psbuf+bufused, sizeof packetsize - bufused)) < 0) {
+ if ((ret = read(fd, (char *)psbuf+bufused, sizeof packetsize - bufused)) < 0) {
fprintf(stderr, "Read error while reading packet size: %s\n", strerror(errno));
return NULL;
} else if (ret == 0) {