The following commit has been merged in the master branch:
commit fe29af206be39edabc5107330745b97da7cadbb7
Author: Guillem Jover <[email protected]>
Date: Sun Aug 16 15:00:51 2009 +0200
Cast field width function arguments to int
diff --git a/lib/dpkg/fields.c b/lib/dpkg/fields.c
index d71c847..641dfb7 100644
--- a/lib/dpkg/fields.c
+++ b/lib/dpkg/fields.c
@@ -53,7 +53,7 @@ convert_string(struct parsedb_state *ps, const char *what,
int otherwise,
if (!nvip->name) {
if (otherwise != -1) return otherwise;
parse_error(ps, pigp, _("`%.*s' is not allowed for %s"),
- strnlen(startp, 50), startp, what);
+ (int)strnlen(startp, 50), startp, what);
}
ep = startp + nvip->length;
diff --git a/src/main.c b/src/main.c
index ad9b4b8..d237054 100644
--- a/src/main.c
+++ b/src/main.c
@@ -368,7 +368,8 @@ static void setforce(const struct cmdinfo *cip, const char
*value) {
if (fip->opt)
*fip->opt= cip->arg;
} else
- badusage(_("unknown force/refuse option `%.*s'"), min(l, 250), value);
+ badusage(_("unknown force/refuse option `%.*s'"),
+ (int)min(l, 250), value);
} else {
if (fip->opt)
*fip->opt= cip->arg;
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]