From: mquinson Date: Mon, 7 May 2007 12:53:42 +0000 (+0000) Subject: size_t is long, so don't play it smart and get it working on amd64 X-Git-Tag: v3.3~1876 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/34088a40cf5189138af4b214e763fb8574e8c295 size_t is long, so don't play it smart and get it working on amd64 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3484 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/tools/tesh/tesh.c b/tools/tesh/tesh.c index 98a6d14da5..3d3c7a9215 100644 --- a/tools/tesh/tesh.c +++ b/tools/tesh/tesh.c @@ -83,7 +83,7 @@ static void handle_line(const char * filepos, char *line) { } static void handle_suite(const char* filename, FILE* IN) { - int len; + size_t len; char * line = NULL; int line_num=0; char file_pos[256]; @@ -93,7 +93,7 @@ static void handle_suite(const char* filename, FILE* IN) { rctx = rctx_new(); - while (getline(&line,(size_t*) &len, IN) != -1) { + while (getline(&line, &len, IN) != -1) { line_num++; /* Count the line length while checking wheather it's blank */