From: Andre Noll Date: Sun, 11 Nov 2007 19:22:56 +0000 (+0100) Subject: Avoid empty lines in the status output. X-Git-Tag: v0.3.0~119 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=ea698c4df1edb2098f42f6c3c8dcef65d5b040d9 Avoid empty lines in the status output. --- diff --git a/aft.c b/aft.c index 57df793f..292cabea 100644 --- a/aft.c +++ b/aft.c @@ -903,7 +903,7 @@ static int print_list_item(struct ls_data *d, struct ls_options *opts, "%s: %lu\n" /* seconds total */ "%s: %d\n" /* num_played */ "%s: %s\n" /* last_played */ - "%s\n", /* tag info */ + "%s", /* tag info */ filename_lines, have_score? status_item_list[SI_SCORE] : "", have_score? ": " : "", diff --git a/command.c b/command.c index bfa58e40..8bafcc04 100644 --- a/command.c +++ b/command.c @@ -120,7 +120,7 @@ static char *get_status(struct misc_meta_data *nmmd) "%s: %s\n" /* afs mode */ "%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,