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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to