statics and consts.
--- a/main.c Fri Sep 14 21:58:22 2007 +0200
+++ b/main.c Fri Sep 14 22:21:51 2007 +0200
@@ -13,7 +13,7 @@
return b;
}
-int fork_app(int *opipe, char * const command[])
+static int fork_app(int *opipe, char * const command[])
{
int p_input[2]; /* from mpg321 to us */
int p_output[2]; /* from us to mpg321 */
@@ -56,7 +56,7 @@
return pid;
}
-int forward_app_data(int in, int out)
+static int forward_app_data(int in, int out)
{
char buf[100];
int res;
@@ -68,7 +68,7 @@
return res;
}
-void loop(const int *child_pipe, int lsocket)
+static void loop(const int *child_pipe, int lsocket)
{
char buf[100];
fd_set read_set;
@@ -145,7 +145,7 @@
} while(1);
}
-int server(int argn, char * const argv[])
+static int server(int argn, char * const argv[])
{
int p[2];
int lsocket;
@@ -164,7 +164,7 @@
return 0;
}
-int client()
+static int client()
{
int cs;
int res;
@@ -219,7 +219,7 @@
return 0;
}
-int main(int argn, char **argv)
+int main(int argn, char * const * argv)
{
int res;
if (argn > 1 && strcmp(argv[1], "-h") == 0)