Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/top/dist/machine Fix previous, so it builds on ...
details: https://anonhg.NetBSD.org/src/rev/120ca718d77f
branches: trunk
changeset: 755293:120ca718d77f
user: rmind <rmind%NetBSD.org@localhost>
date: Mon May 31 18:14:59 2010 +0000
description:
Fix previous, so it builds on some ports.
diffstat:
external/bsd/top/dist/machine/m_netbsd.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (46 lines):
diff -r 80fa50696f07 -r 120ca718d77f external/bsd/top/dist/machine/m_netbsd.c
--- a/external/bsd/top/dist/machine/m_netbsd.c Mon May 31 17:41:24 2010 +0000
+++ b/external/bsd/top/dist/machine/m_netbsd.c Mon May 31 18:14:59 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: m_netbsd.c,v 1.13 2010/05/31 03:18:33 rmind Exp $ */
+/* $NetBSD: m_netbsd.c,v 1.14 2010/05/31 18:14:59 rmind Exp $ */
/*
* top - a top users display for Unix
@@ -37,12 +37,12 @@
* Andrew Doran <ad%NetBSD.org@localhost>
*
*
- * $Id: m_netbsd.c,v 1.13 2010/05/31 03:18:33 rmind Exp $
+ * $Id: m_netbsd.c,v 1.14 2010/05/31 18:14:59 rmind Exp $
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: m_netbsd.c,v 1.13 2010/05/31 03:18:33 rmind Exp $");
+__RCSID("$NetBSD: m_netbsd.c,v 1.14 2010/05/31 18:14:59 rmind Exp $");
#endif
#include <sys/param.h>
@@ -842,8 +842,8 @@
case LSRUN:
case LSSLEEP:
case LSIDL:
- (void)snprintf(state, sizeof(state), "%.6s/%lu",
- statep, pp->p_cpuid);
+ (void)snprintf(state, sizeof(state), "%.6s/%u",
+ statep, (unsigned int)pp->p_cpuid);
statep = state;
break;
}
@@ -915,8 +915,8 @@
case LSRUN:
case LSSLEEP:
case LSIDL:
- (void)snprintf(state, sizeof(state), "%.6s/%lu",
- statep, pl->l_cpuid);
+ (void)snprintf(state, sizeof(state), "%.6s/%u",
+ statep, (unsigned int)pl->l_cpuid);
statep = state;
break;
}
Home |
Main Index |
Thread Index |
Old Index