X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=command.c;h=441f4d7ea667d4fed60c0f7ecb4a87b5a18ae1c5;hb=aee5deb60fa0f20aa9aa4c8aa39fca650fcf71ed;hp=7dba2f90b8e4ff1e6fca0352d31b79d24b41e9af;hpb=08a1de75a3a83c728d97a3c4ff182553adbda8cc;p=paraslash.git diff --git a/command.c b/command.c index 7dba2f90..441f4d7e 100644 --- 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 #include @@ -15,7 +15,6 @@ #include "para.h" #include "error.h" #include "server.cmdline.h" -#include "afs_common.h" #include "string.h" #include "afh.h" #include "afs.h" @@ -31,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; @@ -149,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, @@ -163,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, @@ -446,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;