* 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>
#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;
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,
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,
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;