]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Avoid compiler warnings.
authorNicholas Nethercote <njn@valgrind.org>
Tue, 17 May 2005 21:07:46 +0000 (21:07 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 17 May 2005 21:07:46 +0000 (21:07 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3763

auxprogs/valgrind-listener.c
include/tool.h

index 17155c9876b73e82c06da72cd0b8eaedf979e71e..56ff007d203c528e6c3a952e880628bf4d1a24ec 100644 (file)
@@ -99,7 +99,7 @@ int           conn_fd[M_CONNECTIONS];
 struct pollfd conn_pollfd[M_CONNECTIONS];
 
 
-void set_nonblocking ( int sd )
+static void set_nonblocking ( int sd )
 {
    int res;
    res = fcntl(sd, F_GETFL);
@@ -110,7 +110,7 @@ void set_nonblocking ( int sd )
    }
 }
 
-void set_blocking ( int sd )
+static void set_blocking ( int sd )
 {
    int res;
    res = fcntl(sd, F_GETFL);
@@ -122,7 +122,7 @@ void set_blocking ( int sd )
 }
 
 
-void copyout ( char* buf, int nbuf )
+static void copyout ( char* buf, int nbuf )
 {
    int i;
    for (i = 0; i < nbuf; i++) {
@@ -135,7 +135,7 @@ void copyout ( char* buf, int nbuf )
    fflush(stdout);
 }
 
-int read_from_sd ( int sd )
+static int read_from_sd ( int sd )
 {
    char buf[100];
    int n;
@@ -154,7 +154,7 @@ int read_from_sd ( int sd )
 }
 
 
-void snooze ( void )
+static void snooze ( void )
 {
    struct timespec req;
    req.tv_sec = 0;
@@ -164,7 +164,7 @@ void snooze ( void )
 
 
 /* returns 0 if invalid, else port # */
-int atoi_portno ( char* str )
+static int atoi_portno ( char* str )
 {
    int n = 0;
    while (1) {
@@ -183,7 +183,7 @@ int atoi_portno ( char* str )
 }
 
 
-void usage ( void )
+static void usage ( void )
 {
    fprintf(stderr, 
       "\n"
@@ -206,7 +206,7 @@ void usage ( void )
 }
 
 
-void banner ( char* str )
+static void banner ( char* str )
 {
    time_t t;
    t = time(NULL);
@@ -215,14 +215,14 @@ void banner ( char* str )
 }
 
 
-void exit_routine ( void )
+static void exit_routine ( void )
 {
    banner("exited");
    exit(0);
 }
 
 
-void sigint_handler ( int signo )
+static void sigint_handler ( int signo )
 {
    exit_routine();
 }
index 904bc76bf16c2da304a880b96d8045ecdc28eedd..5eec72ba1701f000b121f4e9464d584bdbae9473 100644 (file)
@@ -271,7 +271,7 @@ extern Char VG_(toupper) ( Char c );
 extern Int   VG_(strlen)         ( const Char* str );
 extern Char* VG_(strcat)         ( Char* dest, const Char* src );
 extern Char* VG_(strncat)        ( Char* dest, const Char* src, Int n );
-extern Char* VG_(strpbrk)        ( const Char* s, const Char* accept );
+extern Char* VG_(strpbrk)        ( const Char* s, const Char* accpt );
 extern Char* VG_(strcpy)         ( Char* dest, const Char* src );
 extern Char* VG_(strncpy)        ( Char* dest, const Char* src, Int ndest );
 extern Int   VG_(strcmp)         ( const Char* s1, const Char* s2 );