Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
size_t is long, so don't play it smart and get it working on amd64
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 May 2007 12:53:42 +0000 (12:53 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 May 2007 12:53:42 +0000 (12:53 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3484 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/tesh/tesh.c

index 98a6d14..3d3c7a9 100644 (file)
@@ -83,7 +83,7 @@ static void handle_line(const char * filepos, char *line) {
 }
 
 static void handle_suite(const char* filename, FILE* IN) {
 }
 
 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];
   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();
 
 
   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 */
     line_num++;
 
     /* Count the line length while checking wheather it's blank */