summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/nvi/common/msg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/nvi/common/msg.c b/contrib/nvi/common/msg.c
index bdf5c02..9fbd738 100644
--- a/contrib/nvi/common/msg.c
+++ b/contrib/nvi/common/msg.c
@@ -617,13 +617,14 @@ msgq_status(sp, lno, flags)
memcpy(p, t, len);
p += len;
} else {
- t = msg_cat(sp, "027|line %lu of %lu [%ld%%]", &len);
- (void)sprintf(p, t, lno, last, (lno * 100) / last);
+ t = msg_cat(sp, "027|line %lu of %lu [%lu%%]", &len);
+ (void)sprintf(p, t, (u_long)lno, (u_long)last,
+ (u_long)(lno * 100) / last);
p += strlen(p);
}
} else {
t = msg_cat(sp, "029|line %lu", &len);
- (void)sprintf(p, t, lno);
+ (void)sprintf(p, t, (u_long)lno);
p += strlen(p);
}
#ifdef DEBUG
OpenPOWER on IntegriCloud