]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
Mark some unused variables as such.
[paraslash.git] / command.c
index 9d902bafbfbc64148bfaa473c63412fe1c016c57..441f4d7ea667d4fed60c0f7ecb4a87b5a18ae1c5 100644 (file)
--- a/command.c
+++ b/command.c
@@ -4,7 +4,7 @@
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 
-/** \file command.c does client authentication and executes server commands */
+/** \file command.c Client authentication and server commands. */
 
 #include <signal.h>
 #include <sys/time.h>
@@ -30,7 +30,7 @@
 #include "server_command_list.h"
 #include "afs_command_list.h"
 
-/** commands including options must be shorter than this */
+/** Commands including options must be shorter than this. */
 #define MAX_COMMAND_LEN 32768
 
 static RC4_KEY rc4_recv_key;
@@ -148,7 +148,7 @@ static char *get_status(struct misc_meta_data *nmmd)
        ret = make_message(
                "%s:%zu\n"      "%s:%s\n"               "%s:%lu\n"      "%s:%u\n"
                "%s:%s\n"       "%s:%s\n"       "%s:%s\n"       "%s:%s\n"
-               "%s:%li\n"      "%s:%s\n"       "%s"
+               "%s:%li\n"      "%s:%s\n"       "%s:%s\n" "%s"
                "%s:%s\n"       "%s:%lu.%lu\n"  "%s:%lu.%lu\n",
                status_item_list[SI_FILE_SIZE], nmmd->size / 1024,
                status_item_list[SI_MTIME], mtime,
@@ -162,6 +162,7 @@ static char *get_status(struct misc_meta_data *nmmd)
 
                status_item_list[SI_OFFSET], offset,
                status_item_list[SI_FORMAT], audio_format_name(nmmd->audio_format),
+               status_item_list[SI_AFS_MODE], mmd->afs_mode_string,
                nmmd->afi.info_string,
 
                status_item_list[SI_UPTIME], ut,
@@ -445,7 +446,7 @@ static int send_list_of_commands(int fd, struct server_command *cmd,
        return 1;
 }
 
-/* always returns string that must be freed by the caller in handler */
+/* returns string that must be freed by the caller */
 static struct server_command *get_cmd_ptr(const char *name, char **handler)
 {
        struct server_command *cmd;