[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mandoc-source
Subject:    mdocml: Two lint fixes.
From:       kristaps () mdocml ! bsd ! lv
Date:       2011-12-16 20:06:58
Message-ID: 201112162006.pBGK6wF7002693 () krisdoz ! my ! domain
[Download RAW message or body]

Log Message:
-----------
Two lint fixes.

Modified Files:
--------------
    mdocml:
        apropos_db.c
        cgi.c

Revision Data
-------------
Index: apropos_db.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/apropos_db.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -Lapropos_db.c -Lapropos_db.c -u -p -r1.25 -r1.26
--- apropos_db.c
+++ apropos_db.c
@@ -197,7 +197,7 @@ btree_read(const DBT *k, const DBT *v, 
 static size_t
 norm_utf8(unsigned int cp, char out[7])
 {
-	size_t		 rc;
+	int		 rc;
 
 	rc = 0;
 
@@ -238,7 +238,7 @@ norm_utf8(unsigned int cp, char out[7])
 		return(0);
 
 	out[rc] = '\0';
-	return(rc);
+	return((size_t)rc);
 }
 
 /*
Index: cgi.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/cgi.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -Lcgi.c -Lcgi.c -u -p -r1.37 -r1.38
--- cgi.c
+++ cgi.c
@@ -134,7 +134,7 @@ atou(const char *buf, unsigned *v)
 		return(0);
 	if ((errno == ERANGE && (lval == LONG_MAX || 
 					lval == LONG_MIN)) ||
-			(lval > UINT_MAX || lval < 0))
+			(lval > INT_MAX || lval < 0))
 		return(0);
 
 	*v = (unsigned int)lval;
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic