X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=command.c;h=8bafcc0418995c0bb8c42b92fa08d996a4f2f8e1;hb=ea698c4df1edb2098f42f6c3c8dcef65d5b040d9;hp=6c60ef972f97aef62a2bf24425bd6a8d103b77c7;hpb=99daab96f932309995188ee7f7618c036994eb46;p=paraslash.git diff --git a/command.c b/command.c index 6c60ef97..8bafcc04 100644 --- a/command.c +++ b/command.c @@ -37,7 +37,6 @@ static RC4_KEY rc4_recv_key; static RC4_KEY rc4_send_key; static unsigned char rc4_buf[2 * RC4_KEY_LEN]; -extern const char *status_item_list[NUM_STAT_ITEMS]; extern struct misc_meta_data *mmd; extern struct sender senders[]; @@ -119,10 +118,9 @@ static char *get_status(struct misc_meta_data *nmmd) "%s: %s\n" /* status flags */ "%s: %li\n" /* offset */ "%s: %s\n" /* afs mode */ - "%s: %s\n" /* server uptime */ "%s: %lu.%lu\n" /* stream start */ "%s: %lu.%lu\n" /* current server time */ - "%s\n", /* afs status info */ + "%s", /* afs status info */ status_item_list[SI_FILE_SIZE], nmmd->size / 1024, status_item_list[SI_MTIME], mtime, status_item_list[SI_STATUS], status, @@ -131,7 +129,6 @@ static char *get_status(struct misc_meta_data *nmmd) status_item_list[SI_OFFSET], offset, status_item_list[SI_AFS_MODE], mmd->afs_mode_string, - status_item_list[SI_UPTIME], ut, status_item_list[SI_STREAM_START], (long unsigned)nmmd->stream_start.tv_sec, (long unsigned)nmmd->stream_start.tv_usec,