Module Name: src
Committed By: rmind
Date: Mon May 31 18:14:59 UTC 2010
Modified Files:
src/external/bsd/top/dist/machine: m_netbsd.c
Log Message:
Fix previous, so it builds on some ports.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/bsd/top/dist/machine/m_netbsd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/top/dist/machine/m_netbsd.c
diff -u src/external/bsd/top/dist/machine/m_netbsd.c:1.13 src/external/bsd/top/dist/machine/m_netbsd.c:1.14
--- src/external/bsd/top/dist/machine/m_netbsd.c:1.13 Mon May 31 03:18:33 2010
+++ src/external/bsd/top/dist/machine/m_netbsd.c Mon May 31 18:14:59 2010
@@ -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 <[email protected]>
*
*
- * $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;
}