summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libunixonacid/unixmessage_handle.c')
-rw-r--r--src/libunixonacid/unixmessage_handle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libunixonacid/unixmessage_handle.c b/src/libunixonacid/unixmessage_handle.c
index 52e85cb..9d9de5c 100644
--- a/src/libunixonacid/unixmessage_handle.c
+++ b/src/libunixonacid/unixmessage_handle.c
@@ -2,19 +2,19 @@
#include <skalibs/unixmessage.h>
-int unixmessage_handle (unixmessage_receiver_t *b, unixmessage_handler_func_t *f, void *p)
+int unixmessage_handle (unixmessage_receiver_t *b, unixmessage_handler_func_t_ref f, void *p)
{
unsigned int n = UNIXMESSAGE_MAXREADS ;
- int count = 0 ;
+ unsigned int count = 0 ;
while (n--)
{
unixmessage_t m ;
- register int r = unixmessage_receive(b, &m) ;
+ int r = unixmessage_receive(b, &m) ;
if (r < 0) return -1 ;
if (!r) break ;
r = (*f)(&m, p) ;
if (r <= 0) return r-2 ;
count++ ;
}
- return count ;
+ return (int)count ;
}