summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2020-06-18 04:44:11 +0000
committerratchov <ratchov@openbsd.org>2020-06-18 04:44:11 +0000
commit433bc805442c7ac5469a92d3df01300430e3dd13 (patch)
tree14dcdfd40541c66ff1acc1d955cede4ccf3cd485 /include
parentThe next step is to use that we have cached the result of the matrix (diff)
downloadwireguard-openbsd-433bc805442c7ac5469a92d3df01300430e3dd13.tar.xz
wireguard-openbsd-433bc805442c7ac5469a92d3df01300430e3dd13.zip
Fix comments about sioctl_desc's maxval field
Diffstat (limited to 'include')
-rw-r--r--include/sndio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sndio.h b/include/sndio.h
index 4fed3d5c2d1..643d7f42eb3 100644
--- a/include/sndio.h
+++ b/include/sndio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sndio.h,v 1.10 2020/02/26 13:53:58 ratchov Exp $ */
+/* $OpenBSD: sndio.h,v 1.11 2020/06/18 04:44:11 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -104,7 +104,7 @@ struct sioctl_node {
struct sioctl_desc {
unsigned int addr; /* control address */
#define SIOCTL_NONE 0 /* deleted */
-#define SIOCTL_NUM 2 /* integer in the 0..127 range */
+#define SIOCTL_NUM 2 /* integer in the 0..maxval range */
#define SIOCTL_SW 3 /* on/off switch (0 or 1) */
#define SIOCTL_VEC 4 /* number, element of vector */
#define SIOCTL_LIST 5 /* switch, element of a list */
@@ -113,7 +113,7 @@ struct sioctl_desc {
char group[SIOCTL_NAMEMAX]; /* group this control belongs to */
struct sioctl_node node0; /* affected node */
struct sioctl_node node1; /* dito for SIOCTL_{VEC,LIST} */
- unsigned int maxval; /* max value for SIOCTL_{NUM,VEC} */
+ unsigned int maxval; /* max value */
int __pad[3];
};