From: Florian Krohm Date: Sat, 20 Oct 2012 19:28:13 +0000 (+0000) Subject: The listener does not use VEX types anywhere else. So this X-Git-Tag: svn/VALGRIND_3_9_0~607 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa4402ac0cbab56e3c0cff8d242acf6617e6799b;p=thirdparty%2Fvalgrind.git The listener does not use VEX types anywhere else. So this change fixes the copy-and-pasted panic functions to use native C types. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13061 --- diff --git a/auxprogs/valgrind-listener.c b/auxprogs/valgrind-listener.c index 8cb6962b00..881098b576 100644 --- a/auxprogs/valgrind-listener.c +++ b/auxprogs/valgrind-listener.c @@ -64,7 +64,7 @@ /*---------------------------------------------------------------*/ __attribute__ ((noreturn)) -static void panic ( Char* str ) +static void panic ( const char* str ) { fprintf(stderr, "\nvalgrind-listener: the " @@ -75,7 +75,7 @@ static void panic ( Char* str ) } __attribute__ ((noreturn)) -static void my_assert_fail ( const Char* expr, const Char* file, Int line, const Char* fn ) +static void my_assert_fail ( const char* expr, const char* file, int line, const char* fn ) { fprintf(stderr, "\nvalgrind-listener: %s:%d (%s): Assertion '%s' failed.\n", @@ -168,7 +168,7 @@ static void snooze ( void ) /* returns 0 if invalid, else port # */ -static int atoi_portno ( char* str ) +static int atoi_portno ( const char* str ) { int n = 0; while (1) { @@ -210,7 +210,7 @@ static void usage ( void ) } -static void banner ( char* str ) +static void banner ( const char* str ) { time_t t; t = time(NULL);