diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-10-20 22:28:13 +0200 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-11-24 19:12:10 -0500 |
commit | 225bc1dd0b5d8a0a4d859865ef25ad0762ee3eff (patch) | |
tree | b8e5e37ee79eb614c189db92a9df36a7c1c228de /sys | |
parent | 2aaf51af491728420ce582413c3c0071f4254a94 (diff) |
shm: sp_client_recv returns negative on error, so make the retval signed
Diffstat (limited to 'sys')
-rw-r--r-- | sys/shm/shmpipe.c | 2 | ||||
-rw-r--r-- | sys/shm/shmpipe.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c index f9aacc4904..f9728de3fd 100644 --- a/sys/shm/shmpipe.c +++ b/sys/shm/shmpipe.c @@ -578,7 +578,7 @@ recv_command (int fd, struct CommandBuffer *cb) } } -unsigned long +long int sp_client_recv (ShmPipe * self, char **buf) { char *area_name = NULL; diff --git a/sys/shm/shmpipe.h b/sys/shm/shmpipe.h index c70c28fe4f..a6e092f6a9 100644 --- a/sys/shm/shmpipe.h +++ b/sys/shm/shmpipe.h @@ -94,7 +94,7 @@ int sp_writer_recv (ShmPipe * self, ShmClient * client); int sp_writer_pending_writes (ShmPipe * self); ShmPipe *sp_client_open (const char *path); -unsigned long sp_client_recv (ShmPipe * self, char **buf); +long int sp_client_recv (ShmPipe * self, char **buf); int sp_client_recv_finish (ShmPipe * self, char *buf); #ifdef __cplusplus |