svn commit: r284048 - head/usr.bin/vgrind
Baptiste Daroussin
bapt at FreeBSD.org
Fri Jun 5 21:45:36 UTC 2015
Author: bapt
Date: Fri Jun 5 21:45:35 2015
New Revision: 284048
URL: https://svnweb.freebsd.org/changeset/base/284048
Log:
Fix some clang warnings:
Add missing headers
Add parenthesis when using the result of an assignment as a condition
Modified:
head/usr.bin/vgrind/vgrindefs.c
Modified: head/usr.bin/vgrind/vgrindefs.c
==============================================================================
--- head/usr.bin/vgrind/vgrindefs.c Fri Jun 5 21:35:20 2015 (r284047)
+++ head/usr.bin/vgrind/vgrindefs.c Fri Jun 5 21:45:35 2015 (r284048)
@@ -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;
More information about the svn-src-head
mailing list