diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-06-12 06:07:18 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-06-12 06:07:18 +0000 |
commit | 2c5359ee4336522c89649a8e017da3fdf87fa8bd (patch) | |
tree | 60aa07e4178dd0840349fe830f118d2cb64a1c6c /usr.bin/kdump/kdump.c | |
parent | c22dc40df755f025740d14e001bb8599cf4a72c5 (diff) |
a real pid_t cleanup.
espie@ ok for make/,
deraadt@ one extra eye,
millert@ ok
Diffstat (limited to 'usr.bin/kdump/kdump.c')
-rw-r--r-- | usr.bin/kdump/kdump.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index df550e0a810..389d34323a5 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kdump.c,v 1.15 2002/03/12 10:40:33 art Exp $ */ +/* $OpenBSD: kdump.c,v 1.16 2002/06/12 06:07:15 mpech Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95"; #endif -static char *rcsid = "$OpenBSD: kdump.c,v 1.15 2002/03/12 10:40:33 art Exp $"; +static char *rcsid = "$OpenBSD: kdump.c,v 1.16 2002/06/12 06:07:15 mpech Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -303,7 +303,8 @@ dumpheader(kth) type = unknown; } - (void)printf("%6d %-8.*s ", kth->ktr_pid, MAXCOMLEN, kth->ktr_comm); + (void)printf("%6ld %-8.*s ", (long)kth->ktr_pid, MAXCOMLEN, + kth->ktr_comm); if (timestamp) { if (timestamp == 2) { timersub(&kth->ktr_time, &prevtime, &temp); |