Fix some printfs and prototypes.
This commit is contained in:
parent
fee167dd96
commit
69c0c710e5
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: command.c,v 1.4 1998/02/04 11:08:43 christos Exp $ */
|
||||
/* $NetBSD: command.c,v 1.5 1998/02/09 07:40:15 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 Mark Nudleman
|
||||
@ -39,7 +39,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)command.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: command.c,v 1.4 1998/02/04 11:08:43 christos Exp $");
|
||||
__RCSID("$NetBSD: command.c,v 1.5 1998/02/09 07:40:15 thorpej Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -193,11 +193,12 @@ prompt()
|
||||
putstr(pbuf);
|
||||
}
|
||||
if ((pos = position(BOTTOM)) != NULL_POSITION) {
|
||||
(void)sprintf(pbuf, " byte %qd", pos);
|
||||
(void)sprintf(pbuf, " byte %qd", (long long)pos);
|
||||
putstr(pbuf);
|
||||
if (!ispipe && (len = ch_length())) {
|
||||
(void)sprintf(pbuf, "/%qd pct %qd%%",
|
||||
len, ((100 * pos) / len));
|
||||
(long long)len,
|
||||
(long long)((100 * pos) / len));
|
||||
putstr(pbuf);
|
||||
}
|
||||
}
|
||||
@ -218,7 +219,8 @@ prompt()
|
||||
else if (!ispipe &&
|
||||
(pos = position(BOTTOM)) != NULL_POSITION &&
|
||||
(len = ch_length())) {
|
||||
(void)sprintf(pbuf, " (%qd%%)", ((100 * pos) / len));
|
||||
(void)sprintf(pbuf, " (%qd%%)",
|
||||
(long long)((100 * pos) / len));
|
||||
putstr(pbuf);
|
||||
}
|
||||
so_exit();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: prim.c,v 1.4 1998/02/04 11:09:07 christos Exp $ */
|
||||
/* $NetBSD: prim.c,v 1.5 1998/02/09 07:40:18 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 Mark Nudleman
|
||||
@ -39,7 +39,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)prim.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: prim.c,v 1.4 1998/02/04 11:09:07 christos Exp $");
|
||||
__RCSID("$NetBSD: prim.c,v 1.5 1998/02/09 07:40:18 thorpej Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -50,6 +50,7 @@ __RCSID("$NetBSD: prim.c,v 1.4 1998/02/04 11:09:07 christos Exp $");
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "less.h"
|
||||
#include "extern.h"
|
||||
|
Loading…
Reference in New Issue
Block a user