about summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/base64.c5
-rw-r--r--resolv/nsap_addr.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/resolv/base64.c b/resolv/base64.c
index 31cd18188f..5d9eb6ec3d 100644
--- a/resolv/base64.c
+++ b/resolv/base64.c
@@ -137,7 +137,7 @@ b64_ntop(src, srclength, target, targsize)
 	size_t datalength = 0;
 	u_char input[3];
 	u_char output[4];
-	int i;
+	size_t i;
 
 	while (2 < srclength) {
 		input[0] = *src++;
@@ -204,7 +204,8 @@ b64_pton(src, target, targsize)
 	u_char *target;
 	size_t targsize;
 {
-	int tarindex, state, ch;
+	size_t tarindex;
+	int state, ch;
 	char *pos;
 
 	state = 0;
diff --git a/resolv/nsap_addr.c b/resolv/nsap_addr.c
index 2f8ffae322..5f41a736d6 100644
--- a/resolv/nsap_addr.c
+++ b/resolv/nsap_addr.c
@@ -54,7 +54,7 @@ inet_nsap_addr(ascii, binary, maxlen)
 	register u_char c, nib;
 	u_int len = 0;
 
-	while ((c = *ascii++) != '\0' && len < maxlen) {
+	while ((c = *ascii++) != '\0' && (int) len < maxlen) {
 		if (c == '.' || c == '+' || c == '/')
 			continue;
 		if (!isascii(c))