chiark / gitweb /
uslip/uslip.c: Make `make_pkqnode' be const-correct.
[tripe] / uslip / uslip.c
index 8892cb804abd34434b7fe08d41fa42c8c9689a4c..7752458c286031d3156f1c6f359dc1d32f015b95 100644 (file)
@@ -135,7 +135,7 @@ static void socketaddr(struct sockaddr_un *sun, size_t *sz)
 
 static void initqueue(pkq *q) { q->head = 0; q->tail = &q->head; }
 
-static pkq_node *make_pkqnode(void *p, size_t n)
+static pkq_node *make_pkqnode(const void *p, size_t n)
 {
   pkq_node *pn;
 
@@ -451,7 +451,7 @@ static void do_accept(int fd, unsigned mode, void *hunoz)
 
 /*----- Main daemon -------------------------------------------------------*/
 
-static void done_slip_dribble(dribbler *d, int err, void *p)
+static void done_slip_dribble(dribbler *d, int err, void *hunoz)
 {
   if (!err)
     reasons--;
@@ -720,7 +720,7 @@ static void conndoconnect(conninfo *c)
 
 static int timerflag;
 
-static void conndrip(struct timeval *tv, void *p)
+static void conndrip(struct timeval *tv, void *hunoz)
 {
   conninfo *c, *cc;