|
From: <sv...@va...> - 2005-05-17 21:07:49
|
Author: njn
Date: 2005-05-17 22:07:46 +0100 (Tue, 17 May 2005)
New Revision: 3763
Modified:
trunk/auxprogs/valgrind-listener.c
trunk/include/tool.h
Log:
Avoid compiler warnings.
Modified: trunk/auxprogs/valgrind-listener.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/auxprogs/valgrind-listener.c 2005-05-17 21:02:03 UTC (rev 3762)
+++ trunk/auxprogs/valgrind-listener.c 2005-05-17 21:07:46 UTC (rev 3763)
@@ -99,7 +99,7 @@
struct pollfd conn_pollfd[M_CONNECTIONS];
=20
=20
-void set_nonblocking ( int sd )
+static void set_nonblocking ( int sd )
{
int res;
res =3D fcntl(sd, F_GETFL);
@@ -110,7 +110,7 @@
}
}
=20
-void set_blocking ( int sd )
+static void set_blocking ( int sd )
{
int res;
res =3D fcntl(sd, F_GETFL);
@@ -122,7 +122,7 @@
}
=20
=20
-void copyout ( char* buf, int nbuf )
+static void copyout ( char* buf, int nbuf )
{
int i;
for (i =3D 0; i < nbuf; i++) {
@@ -135,7 +135,7 @@
fflush(stdout);
}
=20
-int read_from_sd ( int sd )
+static int read_from_sd ( int sd )
{
char buf[100];
int n;
@@ -154,7 +154,7 @@
}
=20
=20
-void snooze ( void )
+static void snooze ( void )
{
struct timespec req;
req.tv_sec =3D 0;
@@ -164,7 +164,7 @@
=20
=20
/* returns 0 if invalid, else port # */
-int atoi_portno ( char* str )
+static int atoi_portno ( char* str )
{
int n =3D 0;
while (1) {
@@ -183,7 +183,7 @@
}
=20
=20
-void usage ( void )
+static void usage ( void )
{
fprintf(stderr,=20
"\n"
@@ -206,7 +206,7 @@
}
=20
=20
-void banner ( char* str )
+static void banner ( char* str )
{
time_t t;
t =3D time(NULL);
@@ -215,14 +215,14 @@
}
=20
=20
-void exit_routine ( void )
+static void exit_routine ( void )
{
banner("exited");
exit(0);
}
=20
=20
-void sigint_handler ( int signo )
+static void sigint_handler ( int signo )
{
exit_routine();
}
Modified: trunk/include/tool.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/tool.h 2005-05-17 21:02:03 UTC (rev 3762)
+++ trunk/include/tool.h 2005-05-17 21:07:46 UTC (rev 3763)
@@ -271,7 +271,7 @@
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 ndes=
t );
extern Int VG_(strcmp) ( const Char* s1, const Char* s2 );
|