src/line_proto.c
changeset 27 e6639132bead
parent 22 c339c020fd33
child 28 9c1050bc8709
--- a/src/line_proto.c	Tue Mar 10 01:11:12 2009 +0200
+++ b/src/line_proto.c	Tue Mar 10 01:46:09 2009 +0200
@@ -47,6 +47,8 @@
     struct line_proto *lp = arg;
     char *line;
 
+    (void) sock;
+
     // sanity-check
     assert(lp->tail_offset < lp->buf_len);
     
@@ -73,11 +75,13 @@
 static void line_proto_on_write (struct sock_stream *sock, void *arg)
 {
     struct line_proto *lp = arg;
-    err_t err;
+    int ret;
+
+    (void) sock;
 
     // just flush
-    if ((err = line_proto_flush(lp)) < 0)
-        FATAL_ERR(err, "line_proto_flush");
+    if ((ret = line_proto_flush(lp)) < 0)
+        FATAL_ERR(-ret, "line_proto_flush");
 }
 
 /*
@@ -151,7 +155,7 @@
  *
  */
 int _parse_line (char *buf, size_t len, size_t *hint) {
-    int i, next = 0;
+    size_t i, next = 0;
 
     // empty buffer -> nothing
     if (len == 0)