[git commit] ps: seconds_since_boot: uint64_t -> ulong

Denys Vlasenko vda.linux at googlemail.com
Sat Jan 26 13:21:15 UTC 2013


commit: http://git.busybox.net/busybox/commit/?id=17d4436424400517014da7bc46759985e0ea131b
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Even if long is 32-bit, 4 billion second uptime isn't likely :)

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 procps/ps.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/procps/ps.c b/procps/ps.c
index 5f73722..89cadad 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -141,10 +141,7 @@ struct globals {
 	unsigned terminal_width;
 #if ENABLE_FEATURE_PS_TIME
 	unsigned kernel_HZ;
-	/* used to be long long, but 64 bits is enough
-	 * (long long may become 128 bits in the future):
-	 */
-	uint64_t seconds_since_boot;
+	unsigned long seconds_since_boot;
 #endif
 } FIX_ALIASING;
 #define G (*(struct globals*)&bb_common_bufsiz1)


More information about the busybox-cvs mailing list