statics and consts.
authorviric@llimona
Fri, 14 Sep 2007 22:21:51 +0200
changeset 9 d688e3670487
parent 8 af5545cb286e
child 10 48a0fbde499a
statics and consts.
main.c
--- 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)