shm: sp_client_recv returns negative on error, so make the retval signed
authorOlivier Crête <olivier.crete@collabora.co.uk>
Wed, 20 Oct 2010 20:28:13 +0000 (22:28 +0200)
committerOlivier Crête <olivier.crete@collabora.co.uk>
Thu, 25 Nov 2010 00:12:10 +0000 (19:12 -0500)
sys/shm/shmpipe.c
sys/shm/shmpipe.h

index f9aacc490482ab044e01196ec397cafb6b773d76..f9728de3fd64b4d177ee8e93e4a800ab6ce284bd 100644 (file)
@@ -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;
index c70c28fe4f1bccfdda6adbff0025283a7bdda20e..a6e092f6a946b31401724c8e6fc7d9a8185ea83c 100644 (file)
@@ -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