From: Nicholas Nethercote Date: Wed, 21 May 2003 10:13:39 +0000 (+0000) Subject: wibble X-Git-Tag: svn/VALGRIND_2_0_0~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=009b8db7bbc2e817dc3f07789b36c95b752c3047;p=thirdparty%2Fvalgrind.git wibble git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1648 --- diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c index b5bb940577..95929dcfa5 100644 --- a/cachegrind/cg_main.c +++ b/cachegrind/cg_main.c @@ -1913,11 +1913,11 @@ static void parse_cache_opt ( cache_t* cache, char* orig_opt, int opt_len ) Bool SK_(process_cmd_line_option)(Char* arg) { /* 5 is length of "--I1=" */ - if (0 == VG_(strncmp)(arg, "--I1=", 5)) + if (VG_CLO_STREQN(5, arg, "--I1=")) parse_cache_opt(&clo_I1_cache, arg, 5); - else if (0 == VG_(strncmp)(arg, "--D1=", 5)) + else if (VG_CLO_STREQN(5, arg, "--D1=")) parse_cache_opt(&clo_D1_cache, arg, 5); - else if (0 == VG_(strncmp)(arg, "--L2=", 5)) + else if (VG_CLO_STREQN(5, arg, "--L2=")) parse_cache_opt(&clo_L2_cache, arg, 5); else return False;