]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Fix some gcc warnings.
authorAndre Noll <maan@systemlinux.org>
Sat, 4 Jul 2009 16:19:46 +0000 (18:19 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 4 Jul 2009 16:19:46 +0000 (18:19 +0200)
Moving the declaration of send_afs_status() which depends on
struct rc4_context out of afs.h fixes a couple of these:

afs.h:120: warning: 'struct rc4_context' declared inside parameter list

afs.h
command.c

diff --git a/afs.h b/afs.h
index bfafd949e7b26fb434e07e43434f276680c07fce..9e04a7edee73bda7b90a5555b4281e74214f310a 100644 (file)
--- a/afs.h
+++ b/afs.h
@@ -117,8 +117,6 @@ struct ls_data {
        HASH_TYPE *hash;
 };
 
        HASH_TYPE *hash;
 };
 
-int send_afs_status(struct rc4_context *rc4c, int parser_friendly);
-
 /** Data about the current audio file, passed from afs to server. */
 struct audio_file_data {
        /** The open file descriptor to the current audio file. */
 /** Data about the current audio file, passed from afs to server. */
 struct audio_file_data {
        /** The open file descriptor to the current audio file. */
index fa844b5ed2213bb8dc00777c18d25e9659b36e19..becd561b939f775427b552b831cc3413fb433fcb 100644 (file)
--- a/command.c
+++ b/command.c
@@ -42,6 +42,8 @@
 extern int mmd_mutex;
 extern struct misc_meta_data *mmd;
 extern struct sender senders[];
 extern int mmd_mutex;
 extern struct misc_meta_data *mmd;
 extern struct sender senders[];
+int send_afs_status(struct rc4_context *rc4c, int parser_friendly);
+
 
 static void dummy(__a_unused int s)
 {
 
 static void dummy(__a_unused int s)
 {