From 7bbafa515126a7abed8e0bf8c41e79bcc771e867 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 16 Dec 2011 20:06:58 +0000 Subject: Two lint fixes. --- apropos_db.c | 6 +++--- cgi.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apropos_db.c b/apropos_db.c index 8ff9e68b..20d290f0 100644 --- a/apropos_db.c +++ b/apropos_db.c @@ -1,4 +1,4 @@ -/* $Id: apropos_db.c,v 1.25 2011/12/16 12:07:45 kristaps Exp $ */ +/* $Id: apropos_db.c,v 1.26 2011/12/16 20:06:58 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -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); } /* diff --git a/cgi.c b/cgi.c index 0eb7d059..7d32a626 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.37 2011/12/16 20:05:31 kristaps Exp $ */ +/* $Id: cgi.c,v 1.38 2011/12/16 20:06:58 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -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; -- cgit v1.2.3