This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
[PATCH] Change maxsize_* and last_* from size_t to uint64_t in memusagestat.c
- From: Holger Freyther <zecke at selfish dot org>
- To: libc-help at sourceware dot org
- Date: Fri, 30 Oct 2009 14:45:04 +0100
- Subject: [PATCH] Change maxsize_* and last_* from size_t to uint64_t in memusagestat.c
2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
* malloc/memusagestat.c (main): Change the type from size_t to uint64_t
in maxsize_heap, maxsize_stack, maxsize_total, last_heap, last_stack,
last_total to avoid assigning from an unsigned to a signed type.
---
malloc/memusagestat.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/malloc/memusagestat.c b/malloc/memusagestat.c
index a5a3150..d8b638d 100644
--- a/malloc/memusagestat.c
+++ b/malloc/memusagestat.c
@@ -122,16 +122,16 @@ main (int argc, char *argv[])
int grey, blue, red, green, yellow, black;
int fd;
struct stat st;
- size_t maxsize_heap;
- size_t maxsize_stack;
- size_t maxsize_total;
+ uint64_t maxsize_heap;
+ uint64_t maxsize_stack;
+ uint64_t maxsize_total;
uint64_t total;
uint64_t cnt, cnt2;
FILE *outfile;
char buf[30];
- size_t last_heap;
- size_t last_stack;
- size_t last_total;
+ uint64_t last_heap;
+ uint64_t last_stack;
+ uint64_t last_total;
struct entry headent[2];
uint64_t start_time;
uint64_t end_time;
--
1.6.3.3