diff options
author | 2020-11-14 20:53:31 +0000 | |
---|---|---|
committer | 2020-11-14 20:53:31 +0000 | |
commit | 598e0fa840a6086bb9e40d03de1b9ba67d23b3d8 (patch) | |
tree | 730f2466fce6e506bbc798555ff94b206e2e3c5d /lib/libc | |
parent | Make sure not to replace 0.0.0.0 with dynamic address if it is a a network (diff) | |
download | wireguard-openbsd-598e0fa840a6086bb9e40d03de1b9ba67d23b3d8.tar.xz wireguard-openbsd-598e0fa840a6086bb9e40d03de1b9ba67d23b3d8.zip |
Constify dktypenames and fstypenames in libc.
Adjust variable declaration in disklabel to match.
ok millert@ deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/disklabel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/disklabel.c b/lib/libc/gen/disklabel.c index cacde610389..a438a6b4815 100644 --- a/lib/libc/gen/disklabel.c +++ b/lib/libc/gen/disklabel.c @@ -42,7 +42,7 @@ #include <string.h> #include <unistd.h> -static u_int gettype(char *, char **); +static u_int gettype(char *, const char * const *); struct disklabel * getdiskbyname(const char *name) @@ -145,9 +145,9 @@ getdiskbyname(const char *name) } static u_int -gettype(char *t, char **names) +gettype(char *t, const char * const *names) { - char **nm; + const char * const *nm; for (nm = names; *nm; nm++) if (strcasecmp(t, *nm) == 0) |