diff options
author | bapt <bapt@FreeBSD.org> | 2015-06-05 21:45:35 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-06-05 21:45:35 +0000 |
commit | 1ae3a71a421e15a9ae7dcabe0fa1ad7e77fc80be (patch) | |
tree | 125d5481d0901d61151d07dc69ea02928d145a12 /usr.bin/vgrind | |
parent | d1d1b889d9a7798f9a588590e53b57f4c3f37fe8 (diff) | |
download | FreeBSD-src-1ae3a71a421e15a9ae7dcabe0fa1ad7e77fc80be.zip FreeBSD-src-1ae3a71a421e15a9ae7dcabe0fa1ad7e77fc80be.tar.gz |
Fix some clang warnings:
Add missing headers
Add parenthesis when using the result of an assignment as a condition
Diffstat (limited to 'usr.bin/vgrind')
-rw-r--r-- | usr.bin/vgrind/vgrindefs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/vgrind/vgrindefs.c b/usr.bin/vgrind/vgrindefs.c index c48a048..3c310a9 100644 --- a/usr.bin/vgrind/vgrindefs.c +++ b/usr.bin/vgrind/vgrindefs.c @@ -35,6 +35,8 @@ __FBSDID("$FreeBSD$"); #define MAXHOP 32 /* max number of tc= indirections */ #include <ctype.h> +#include <fcntl.h> +#include <string.h> #include <unistd.h> /* @@ -308,7 +310,7 @@ tdecode(register char *str, char **area) register int c; cp = *area; - while (c = *str++) { + while ((c = *str++)) { if (c == ':' && *(cp-1) != '\\') break; *cp++ = c; |