]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Make pass_afd() static.
authorAndre Noll <maan@systemlinux.org>
Tue, 23 Oct 2007 14:43:17 +0000 (16:43 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 23 Oct 2007 14:43:17 +0000 (16:43 +0200)
And move current_mop to the top.

afs.c

diff --git a/afs.c b/afs.c
index 901ae00deca346e78a76be2841acccb2feacd4c4..cc6d7467b3570228cb45f70a329da7467d007e71 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -80,6 +80,8 @@ static struct command_task command_task_struct;
 static struct signal_task signal_task_struct;
 
 static enum play_mode current_play_mode;
+static char *current_mop; /* mode or playlist specifier. NULL means dummy mooe */
+
 
 /**
  * A random number used to "authenticate" the connection.
@@ -431,7 +433,7 @@ int stdin_command(int fd, struct osl_object *arg_obj, callback_function *f,
        return ret;
 }
 
-int pass_afd(int fd, char *buf, size_t size)
+static int pass_afd(int fd, char *buf, size_t size)
 {
        struct msghdr msg = {.msg_iov = NULL};
        struct cmsghdr *cmsg;
@@ -508,8 +510,6 @@ destroy:
        return ret;
 }
 
-static char *current_mop; /* mode or playlist specifier. NULL means dummy mooe */
-
 /* Never fails if arg == NULL */
 static int activate_mood_or_playlist(char *arg, int *num_admissible)
 {