From 225bc1dd0b5d8a0a4d859865ef25ad0762ee3eff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 20 Oct 2010 22:28:13 +0200 Subject: [PATCH] shm: sp_client_recv returns negative on error, so make the retval signed --- sys/shm/shmpipe.c | 2 +- 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 f9aacc4..f9728de 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 c70c28f..a6e092f 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 -- 2.7.4