All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: selinux@tycho.nsa.gov
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Subject: [PATCH] mcstrans: Fix signed/unsigned warnings
Date: Wed, 16 Nov 2016 14:55:24 -0500	[thread overview]
Message-ID: <1479326124-24639-1-git-send-email-sds@tycho.nsa.gov> (raw)

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
---
 mcstrans/src/mcstrans.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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);
-- 
2.7.4

                 reply	other threads:[~2016-11-16 19:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1479326124-24639-1-git-send-email-sds@tycho.nsa.gov \
    --to=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.