Skip to content

Commit

Permalink
Fix some clang warnings:
Browse files Browse the repository at this point in the history
Add missing headers
Add parenthesis when using the result of an assignment as a condition
  • Loading branch information
bapt committed Jun 5, 2015
1 parent a0c5c03 commit b1998e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion usr.bin/vgrind/vgrindefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

/*
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b1998e6

Please sign in to comment.