The listener does not use VEX types anywhere else. So this
authorflorian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Sat, 20 Oct 2012 19:28:13 +0000 (19:28 +0000)
committerflorian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Sat, 20 Oct 2012 19:28:13 +0000 (19:28 +0000)
change fixes the copy-and-pasted panic functions to use
native C types.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13061 a5019735-40e9-0310-863c-91ae7b9d1cf9

auxprogs/valgrind-listener.c

index 8cb6962b00a4f2a013d5b24877a052277b7c06da..881098b576a49ee34f3b6ae14de4ab44ab395b5d 100644 (file)
@@ -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);