From e969452e161afbe2ec6220ecce30bd5d27cabb8c Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 26 Apr 2007 10:50:40 +0000 Subject: [PATCH 1/1] Follow cleanups in the xbt_str module git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3457 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- tools/tesh/tesh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tesh/tesh.c b/tools/tesh/tesh.c index abbaf22177..794fd390a8 100644 --- a/tools/tesh/tesh.c +++ b/tools/tesh/tesh.c @@ -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 "))) { -- 2.20.1