From: Nicholas Nethercote Date: Mon, 27 Aug 2007 22:18:58 +0000 (+0000) Subject: fixed a couple of minor things X-Git-Tag: svn/VALGRIND_3_3_0~233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6706c608c8952eccad1c66610aca23ae94e0a150;p=thirdparty%2Fvalgrind.git fixed a couple of minor things git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6785 --- diff --git a/lackey/lk_main.c b/lackey/lk_main.c index d6a5fdc5ff..028a1aaa2d 100644 --- a/lackey/lk_main.c +++ b/lackey/lk_main.c @@ -319,9 +319,9 @@ static Int type2index ( IRType ty ) } } -static HChar* nameOfTypeIndex ( IRType ty ) +static HChar* nameOfTypeIndex ( Int i ) { - switch (ty) { + switch (i) { case 0: return "I1"; break; case 1: return "I8"; break; case 2: return "I16"; break; diff --git a/massif/hp2ps/Main.c b/massif/hp2ps/Main.c index d740f33aeb..42fdf7495a 100644 --- a/massif/hp2ps/Main.c +++ b/massif/hp2ps/Main.c @@ -90,6 +90,7 @@ int main(int argc, char* argv[]) case '-': iflag = -1; case '+': + break; default: iflag = 1; }