summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-09-01 10:57:25 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-09-01 10:57:25 +0000
commit982eea41b80d820cd99b3d0ef20af2867133ed50 (patch)
tree2d344b0aed9290286bdd4d2b346e452b48b8e259
parent8657a2628ce6f1600bb1b3bf28b544b3ab9f9ff7 (diff)
naming a union 'sockthing' was a bit silly. sockun will do for now.
-rw-r--r--usr.sbin/rebound/rebound.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c
index 88d4ddab1e4..d379478f0de 100644
--- a/usr.sbin/rebound/rebound.c
+++ b/usr.sbin/rebound/rebound.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rebound.c,v 1.69 2016/09/01 10:55:21 tedu Exp $ */
+/* $OpenBSD: rebound.c,v 1.70 2016/09/01 10:57:24 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -42,7 +42,7 @@
uint16_t randomid(void);
-union sockthing {
+union sockun {
struct sockaddr a;
struct sockaddr_storage s;
struct sockaddr_in i;
@@ -92,7 +92,7 @@ struct request {
int s;
int client;
int tcp;
- union sockthing from;
+ union sockun from;
socklen_t fromlen;
struct timespec ts;
TAILQ_ENTRY(request) fifo;
@@ -220,7 +220,7 @@ servfail(int ud, uint16_t id, struct sockaddr *fromaddr, socklen_t fromlen)
static struct request *
newrequest(int ud, struct sockaddr *remoteaddr)
{
- union sockthing from;
+ union sockun from;
socklen_t fromlen;
struct request *req;
uint8_t buf[65536];
@@ -455,7 +455,7 @@ fail:
}
static int
-readconfig(FILE *conf, union sockthing *remoteaddr)
+readconfig(FILE *conf, union sockun *remoteaddr)
{
char buf[1024];
struct sockaddr_in *sin = &remoteaddr->i;
@@ -484,7 +484,7 @@ readconfig(FILE *conf, union sockthing *remoteaddr)
static int
launch(FILE *conf, int ud, int ld, int kq)
{
- union sockthing remoteaddr;
+ union sockun remoteaddr;
struct kevent ch[2], kev[4];
struct timespec ts, *timeout = NULL;
struct request *req;
@@ -657,7 +657,7 @@ usage(void)
int
main(int argc, char **argv)
{
- union sockthing bindaddr;
+ union sockun bindaddr;
int r, kq, ld, ud, ch;
int one;
int childdead, hupped;