* mdocml: Two lint fixes.
@ 2011-12-16 20:06 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-12-16 20:06 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-16 20:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16 20:06 mdocml: Two lint fixes kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).