mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Fix some clang warnings:
Add missing headers Add parenthesis when using the result of an assignment as a condition
This commit is contained in:
parent
a0c5c03b66
commit
b1998e6914
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284048
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user