diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2014-01-22 07:28:02 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2014-01-22 07:28:02 +0200 |
commit | 717a07e208ced8ab10c59e70eada67c1a2e8afa2 (patch) | |
tree | a804c86b8ca115dc9ab9f73780f08038a18d3c49 /src/buffer.c | |
parent | f0a1f78196f75678424712ac36f0a4a46e3e5658 (diff) | |
download | tar-717a07e208ced8ab10c59e70eada67c1a2e8afa2.tar.gz |
Improve checkpoint interface.
* src/buffer.c (format_total_stats): The format arg is const
All uses updated.
(default_total_format): const
* src/checkpoint.c (tty, tty_cleanup): New static.
(format_checkpoint_string): New "canned" format %c
(checkpoint_finish): New function.
* src/common.h (checkpoint_finish): New proto.
* src/tar.c (main): Call checkpoint_finish.`
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index 0f5c76e7..648b6baa 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -514,7 +514,7 @@ print_stats (FILE *fp, const char *text, tarlong numbytes) from the archive), EOL is a delimiter to add at the end of the output line. */ int -format_total_stats (FILE *fp, char **formats, int eor, int eol) +format_total_stats (FILE *fp, const char **formats, int eor, int eol) { int n; @@ -569,7 +569,7 @@ format_total_stats (FILE *fp, char **formats, int eor, int eol) return n; } -char *default_total_format[] = { +const char *default_total_format[] = { N_("Total bytes read"), /* Amanda 2.4.1p1 looks for "Total bytes written: [0-9][0-9]*". */ N_("Total bytes written"), |