From: Andre Noll Date: Tue, 23 Oct 2007 14:43:17 +0000 (+0200) Subject: Make pass_afd() static. X-Git-Tag: v0.3.0~251 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=da0a1b59045898dd73d6737ccd4f4af6fb29ad7f;ds=sidebyside Make pass_afd() static. And move current_mop to the top. --- diff --git a/afs.c b/afs.c index 901ae00d..cc6d7467 100644 --- 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) {