From bf706e9e61bfc8f8409b5c9ecb472f9bf1561cf3 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Mon, 8 Feb 2010 22:12:34 +0000 Subject: [PATCH] patched for CYGWIN --- src/frontend/com_sysinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/com_sysinfo.c b/src/frontend/com_sysinfo.c index 5724d9dc3..6b44f1d2e 100644 --- a/src/frontend/com_sysinfo.c +++ b/src/frontend/com_sysinfo.c @@ -65,13 +65,13 @@ static size_t get_sysmem(struct sys_memory *memall); /* Print to stream the given memory size in a human friendly format */ static void -fprintmem(FILE* stream, long long memory) { +fprintmem(FILE* stream, unsigned long long memory) { if (memory > 1048576) fprintf(stream, "%8.6f MB", memory/1048576.); else if (memory > 1024) fprintf(stream, "%5.3f kB", memory/1024.); else - fprintf(stream, "%lu bytes", memory); + fprintf(stream, "%lu bytes", (unsigned long)memory); } @@ -129,7 +129,7 @@ static size_t get_sysmem(struct sys_memory *memall) { char buffer[2048]; size_t bytes_read; char *match; - long long mem_got; + int64 mem_got; if((fp = fopen("/proc/meminfo", "r")) == NULL) { perror("fopen(\"/proc/meminfo\")");