]> Pileus Git - ~andy/lamechat/blobdiff - util.c
XMPP OpenSSL
[~andy/lamechat] / util.c
diff --git a/util.c b/util.c
index 29edf581d5fcbd6f2f9aa038fde077e2f8d8660e..2e27cd417eb6db00b9bb1aa1a9973a52702b141b 100644 (file)
--- a/util.c
+++ b/util.c
@@ -120,7 +120,7 @@ void *alloc0(int size)
        return data;
 }
 
-void append(buf_t *buf, const void *data, int len)
+void append(buf_t *buf, const char *data, int len)
 {
        if (buf->len + len + 1 > buf->max) {
                buf->max += (((buf->len+len)/4096)+1)*4096;
@@ -239,7 +239,7 @@ int poll_run(int timeout)
                 //        event.events & EPOLLWAKEUP  ? " wakeup"  : "",
                 //        event.events & EPOLLONESHOT ? " oneshot" : "",
                 //        event.events & EPOLLET      ? " et"      : "");
-               poll->cb(poll->data, poll->fd);
+               poll->cb(poll->data);
                return running;
        }
        return running;