Fix some clang warnings:

Add missing headers
Add parenthesis when using the result of an assignment as a condition
This commit is contained in:
Baptiste Daroussin 2015-06-05 21:45:35 +00:00
parent a0c5c03b66
commit b1998e6914
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284048

View File

@ -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;