diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-05 21:45:35 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-05 21:45:35 +0000 |
commit | b1998e6914597d2181dc7a49aa724d5fdc51b079 (patch) | |
tree | 125d5481d0901d61151d07dc69ea02928d145a12 /usr.bin | |
parent | a0c5c03b66ce17b241dd06d3f84ad691daeec485 (diff) | |
download | src-b1998e6914597d2181dc7a49aa724d5fdc51b079.tar.gz src-b1998e6914597d2181dc7a49aa724d5fdc51b079.zip |
Fix some clang warnings:
Add missing headers
Add parenthesis when using the result of an assignment as a condition
Notes
Notes:
svn path=/head/; revision=284048
Diffstat (limited to 'usr.bin')
-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 c48a0483b0ca..3c310a9b84fc 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; |