summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2002-09-04 21:22:49 +0000
committerdwmalone <dwmalone@FreeBSD.org>2002-09-04 21:22:49 +0000
commiteed11ca2518eaada2a596ffcca5d72d9e070ccc4 (patch)
tree94878fd7af28b7102534e65292cb3936f2b91cf4 /usr.bin
parentabb26c53ddaca841d356794fdc9f9a5118e88796 (diff)
downloadFreeBSD-src-eed11ca2518eaada2a596ffcca5d72d9e070ccc4.zip
FreeBSD-src-eed11ca2518eaada2a596ffcca5d72d9e070ccc4.tar.gz
Avoid a signedness warning by casting chain_index to a size_t.
(Should be OK as chain_index is supposed to be positive).
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/colldef/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/colldef/parse.y b/usr.bin/colldef/parse.y
index c180f82..e362bb0 100644
--- a/usr.bin/colldef/parse.y
+++ b/usr.bin/colldef/parse.y
@@ -151,7 +151,7 @@ order : ORDER order_list {
out_file);
if (fwrite(__collate_chain_pri_table,
sizeof(*__collate_chain_pri_table), chain_index, fp) !=
- chain_index)
+ (size_t)chain_index)
err(EX_IOERR,
"IO error writting chain table to destination file %s",
out_file);
OpenPOWER on IntegriCloud