diff mbox

mcstrans: Fix signed/unsigned warnings

Message ID 1479326124-24639-1-git-send-email-sds@tycho.nsa.gov (mailing list archive)
State Not Applicable
Headers show

Commit Message

Stephen Smalley Nov. 16, 2016, 7:55 p.m. UTC
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
---
 mcstrans/src/mcstrans.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/mcstrans/src/mcstrans.c b/mcstrans/src/mcstrans.c
index 1b77d16..00fb808 100644
--- a/mcstrans/src/mcstrans.c
+++ b/mcstrans/src/mcstrans.c
@@ -89,7 +89,7 @@  typedef struct word_group {
 	ebitmap_t def;
 
 	word_t **sword;
-	int sword_len;
+	unsigned int sword_len;
 
 	struct word_group *next;
 } word_group_t;
@@ -1194,7 +1194,7 @@  compute_raw_from_trans(const char *level, domain_t *domain) {
 						char *p = triml((char *)match, g->whitespace);
 						while (p && *p) {
 							int plen = strlen(p);
-							int i;
+							unsigned int i;
 							for (i = 0; i < g->sword_len; i++) {
 								word_t *w = g->sword[i];
 								int wlen = strlen(w->text);