diff options
author | 2015-03-09 21:30:27 +0000 | |
---|---|---|
committer | 2015-03-09 21:30:27 +0000 | |
commit | 1918841e2ed981874e2c1fa688e53ca1a993edab (patch) | |
tree | 4e10dc98b3b63a1649fd0628820160c7c81bd309 /usr.bin/mandoc/main.c | |
parent | If my calculations are correct, when this baby hits 5.8... you're gonna see (diff) | |
download | wireguard-openbsd-1918841e2ed981874e2c1fa688e53ca1a993edab.tar.xz wireguard-openbsd-1918841e2ed981874e2c1fa688e53ca1a993edab.zip |
Explicitly cast when assigning from char * to unsigned char * and vice versa.
For example, gcc 4.7 wants this with -Wall. Patch from kristaps@.
Diffstat (limited to 'usr.bin/mandoc/main.c')
-rw-r--r-- | usr.bin/mandoc/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c index 07eb4d650c9..d79e6cb8eb3 100644 --- a/usr.bin/mandoc/main.c +++ b/usr.bin/mandoc/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.127 2015/02/27 16:00:54 schwarze Exp $ */ +/* $OpenBSD: main.c,v 1.128 2015/03/09 21:30:27 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -293,11 +293,11 @@ main(int argc, char *argv[]) argc = 1; } } else if (argc > 1 && - ((uc = argv[0]) != NULL) && + ((uc = (unsigned char *)argv[0]) != NULL) && ((isdigit(uc[0]) && (uc[1] == '\0' || (isalpha(uc[1]) && uc[2] == '\0'))) || (uc[0] == 'n' && uc[1] == '\0'))) { - search.sec = uc; + search.sec = (char *)uc; argv++; argc--; } |