aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipf/ipsend/sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ipf/ipsend/sock.c')
-rw-r--r--sbin/ipf/ipsend/sock.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/sbin/ipf/ipsend/sock.c b/sbin/ipf/ipsend/sock.c
index 51418d64d1fe..4228b8f6b2d2 100644
--- a/sbin/ipf/ipsend/sock.c
+++ b/sbin/ipf/ipsend/sock.c
@@ -99,10 +99,8 @@ struct proc *proc;
static struct kinfo_proc *getproc(void);
-int kmemcpy(buf, pos, n)
- char *buf;
- void *pos;
- int n;
+int
+kmemcpy(char *buf, void *pos, int n)
{
static int kfd = -1;
off_t offset = (u_long)pos;
@@ -130,7 +128,8 @@ struct nlist names[4] = {
{ NULL }
};
-static struct kinfo_proc *getproc()
+static struct
+kinfo_proc *getproc(void)
{
static struct kinfo_proc kp;
pid_t pid = getpid();
@@ -152,9 +151,8 @@ static struct kinfo_proc *getproc()
}
-struct tcpcb *find_tcp(tfd, ti)
- int tfd;
- struct tcpiphdr *ti;
+struct tcpcb *
+find_tcp(int tfd, struct tcpiphdr *ti)
{
struct tcpcb *t;
struct inpcb *i;
@@ -247,11 +245,8 @@ finderror:
return NULL;
}
-int do_socket(dev, mtu, ti, gwip)
- char *dev;
- int mtu;
- struct tcpiphdr *ti;
- struct in_addr gwip;
+int
+do_socket(char *dev, int mtu, struct tcpiphdr *ti, struct in_addr gwip)
{
struct sockaddr_in rsin, lsin;
struct tcpcb *t, tcb;