Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Follow cleanups in the xbt_str module
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 26 Apr 2007 10:50:40 +0000 (10:50 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 26 Apr 2007 10:50:40 +0000 (10:50 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3457 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/tesh/tesh.c

index abbaf22..794fd39 100644 (file)
@@ -70,7 +70,7 @@ static void buff_chomp(buff_t *b) {
 
 static void buff_trim(buff_t* b)
 {
-       trim(b->data," ");
+       xbt_str_trim(b->data," ");
        b->used = strlen(b->data);
 }
 
@@ -353,7 +353,7 @@ static void handle_line(int nl, char *line) {
 
     } else if (!strncmp(line+2,"expect signal ",strlen("expect signal "))) {
       expected_signal = strdup(line+2 + strlen("expect signal "));
-      trim(expected_signal," \n");
+      xbt_str_trim(expected_signal," \n");
           printf("[%d] (next command must raise signal %s)\n", nl, expected_signal);
 
     } else if (!strncmp(line+2,"expect return ",strlen("expect return "))) {