]> git.proxmox.com Git - qemu.git/blobdiff - slirp/if.c
Sparse fixes: NULL use, header order, ANSI prototypes, static
[qemu.git] / slirp / if.c
index 0e10f3e6d96214f76512f976b11698bfd5cf1e98..17f8a733781e795e40223278c0ad38711349fbfd 100644 (file)
@@ -32,7 +32,7 @@ ifs_remque(struct mbuf *ifm)
 }
 
 void
-if_init()
+if_init(void)
 {
        if_fastq.ifq_next = if_fastq.ifq_prev = &if_fastq;
        if_batchq.ifq_next = if_batchq.ifq_prev = &if_batchq;
@@ -133,9 +133,7 @@ if_input(ttyp)
  * it'll temporarily get downgraded to the batchq)
  */
 void
-if_output(so, ifm)
-       struct socket *so;
-       struct mbuf *ifm;
+if_output(struct socket *so, struct mbuf *ifm)
 {
        struct mbuf *ifq;
        int on_fastq = 1;