check_pack.c:327:10: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
if(n > get_max_msg_size())
^
Signed-off-by: Mikko Koivunalho <mikko.koivunalho@iki.fi>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+#include <stddef.h>
#include "check.h"
#include "check_error.h"
void ppack(FILE * fdes, enum ck_msg_type type, CheckMsg * msg)
{
char *buf = NULL;
- int n;
- ssize_t r;
+ size_t n, r;
n = pack(type, &buf, msg);
/* Keep it on the safe side to not send too much data. */