summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2017-05-27 18:38:07 +0000
committerflorian <florian@openbsd.org>2017-05-27 18:38:07 +0000
commit60a0bacb48decba3993ae80dc31d42bb6b2d6b4e (patch)
treeca85cf4e613fac84a6a96e9bed0a7f2b691423f1
parentprint router preference (diff)
downloadwireguard-openbsd-60a0bacb48decba3993ae80dc31d42bb6b2d6b4e.tar.xz
wireguard-openbsd-60a0bacb48decba3993ae80dc31d42bb6b2d6b4e.zip
use sizeof("constant string") to avoid magic number
-rw-r--r--usr.sbin/slaacd/slaacd.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/usr.sbin/slaacd/slaacd.h b/usr.sbin/slaacd/slaacd.h
index 09b93f6c6ed..b952a09bc45 100644
--- a/usr.sbin/slaacd/slaacd.h
+++ b/usr.sbin/slaacd/slaacd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: slaacd.h,v 1.13 2017/05/27 18:37:09 florian Exp $ */
+/* $OpenBSD: slaacd.h,v 1.14 2017/05/27 18:38:07 florian Exp $ */
/*
* Copyright (c) 2017 Florian Obser <florian@openbsd.org>
@@ -127,18 +127,18 @@ struct ctl_engine_info_ra_dnssl {
};
struct ctl_engine_info_address_proposal {
- int64_t id;
- char state[32];
- int next_timeout;
- int timeout_count;
- struct timespec when;
- struct timespec uptime;
- struct sockaddr_in6 addr;
- struct in6_addr prefix;
- int privacy;
- uint8_t prefix_len;
- uint32_t vltime;
- uint32_t pltime;
+ int64_t id;
+ char state[sizeof("PROPOSAL_NEARLY_EXPIRED")];
+ int next_timeout;
+ int timeout_count;
+ struct timespec when;
+ struct timespec uptime;
+ struct sockaddr_in6 addr;
+ struct in6_addr prefix;
+ int privacy;
+ uint8_t prefix_len;
+ uint32_t vltime;
+ uint32_t pltime;
};