summaryrefslogtreecommitdiff
path: root/usr.sbin/ikectl
diff options
context:
space:
mode:
authorTobias Heider <tobhe@cvs.openbsd.org>2022-12-04 11:54:32 +0000
committerTobias Heider <tobhe@cvs.openbsd.org>2022-12-04 11:54:32 +0000
commit6db5eb96ea53ae5d57b7b24378ac6268fbdbdc9e (patch)
treed76029b7b575f38a7ee336a5c4c3ef961cf06ab3 /usr.sbin/ikectl
parenta38290a91db4efcac213e307b17974ce332ce807 (diff)
Rename sun to s_un for portability.
ok patrick@
Diffstat (limited to 'usr.sbin/ikectl')
-rw-r--r--usr.sbin/ikectl/ikectl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ikectl/ikectl.c b/usr.sbin/ikectl/ikectl.c
index 4eb3d8ee517..85bb31d8207 100644
--- a/usr.sbin/ikectl/ikectl.c
+++ b/usr.sbin/ikectl/ikectl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikectl.c,v 1.29 2022/12/03 22:34:35 tobhe Exp $ */
+/* $OpenBSD: ikectl.c,v 1.30 2022/12/04 11:54:31 tobhe Exp $ */
/*
* Copyright (c) 2007-2013 Reyk Floeter <reyk@openbsd.org>
@@ -158,7 +158,7 @@ ca_opt(struct parse_result *res)
int
main(int argc, char *argv[])
{
- struct sockaddr_un sun;
+ struct sockaddr_un s_un;
struct parse_result *res;
struct imsg imsg;
int ctl_sock;
@@ -229,11 +229,11 @@ main(int argc, char *argv[])
if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
err(1, "socket");
- bzero(&sun, sizeof(sun));
- sun.sun_family = AF_UNIX;
- strlcpy(sun.sun_path, sock, sizeof(sun.sun_path));
+ bzero(&s_un, sizeof(s_un));
+ s_un.sun_family = AF_UNIX;
+ strlcpy(s_un.sun_path, sock, sizeof(s_un.sun_path));
reconnect:
- if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) {
+ if (connect(ctl_sock, (struct sockaddr *)&s_un, sizeof(s_un)) == -1) {
/* Keep retrying if running in monitor mode */
if (res->action == MONITOR &&
(errno == ENOENT || errno == ECONNREFUSED)) {