From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Two lint fixes.
Date: Fri, 16 Dec 2011 15:06:58 -0500 (EST) [thread overview]
Message-ID: <201112162006.pBGK6wF7002693@krisdoz.my.domain> (raw)
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
reply other threads:[~2011-12-16 20:06 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=201112162006.pBGK6wF7002693@krisdoz.my.domain \
--to=kristaps@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/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 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).