Fix printf formats so they work on the Alpha.
This commit is contained in:
parent
6efeed277f
commit
a40a144d00
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: jobs.c,v 1.23 1997/10/08 20:31:52 christos Exp $ */
|
/* $NetBSD: jobs.c,v 1.24 1998/02/04 20:10:16 thorpej Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
|
static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: jobs.c,v 1.23 1997/10/08 20:31:52 christos Exp $");
|
__RCSID("$NetBSD: jobs.c,v 1.24 1998/02/04 20:10:16 thorpej Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -810,7 +810,7 @@ dowait(block, job)
|
|||||||
outfmt(out2, "%d: ", pid);
|
outfmt(out2, "%d: ", pid);
|
||||||
#if JOBS
|
#if JOBS
|
||||||
if (sig == SIGTSTP && rootshell && iflag)
|
if (sig == SIGTSTP && rootshell && iflag)
|
||||||
outfmt(out2, "%%%d ", job - jobtab + 1);
|
outfmt(out2, "%%%ld ", job - jobtab + 1);
|
||||||
#endif
|
#endif
|
||||||
if (sig < NSIG && sys_siglist[sig])
|
if (sig < NSIG && sys_siglist[sig])
|
||||||
out2str(sys_siglist[sig]);
|
out2str(sys_siglist[sig]);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: miscbltin.c,v 1.23 1998/01/21 10:47:39 christos Exp $ */
|
/* $NetBSD: miscbltin.c,v 1.24 1998/02/04 20:10:17 thorpej Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)miscbltin.c 8.4 (Berkeley) 5/4/95";
|
static char sccsid[] = "@(#)miscbltin.c 8.4 (Berkeley) 5/4/95";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: miscbltin.c,v 1.23 1998/01/21 10:47:39 christos Exp $");
|
__RCSID("$NetBSD: miscbltin.c,v 1.24 1998/02/04 20:10:17 thorpej Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -366,7 +366,7 @@ ulimitcmd(argc, argv)
|
|||||||
{
|
{
|
||||||
val /= l->factor;
|
val /= l->factor;
|
||||||
#ifdef BSD4_4
|
#ifdef BSD4_4
|
||||||
out1fmt("%qd\n", (quad_t) val);
|
out1fmt("%qd\n", (long long) val);
|
||||||
#else
|
#else
|
||||||
out1fmt("%ld\n", (long) val);
|
out1fmt("%ld\n", (long) val);
|
||||||
#endif
|
#endif
|
||||||
@ -395,7 +395,7 @@ ulimitcmd(argc, argv)
|
|||||||
{
|
{
|
||||||
val /= l->factor;
|
val /= l->factor;
|
||||||
#ifdef BSD4_4
|
#ifdef BSD4_4
|
||||||
out1fmt("%qd\n", (quad_t) val);
|
out1fmt("%qd\n", (long long) val);
|
||||||
#else
|
#else
|
||||||
out1fmt("%ld\n", (long) val);
|
out1fmt("%ld\n", (long) val);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user