From 2e7aa7f76d7c45ba9d42be1f4425c9b7a67edf51 Mon Sep 17 00:00:00 2001 From: hniksic Date: Sun, 26 Jun 2005 16:04:56 -0700 Subject: [PATCH] [svn] Constify variable. --- src/ChangeLog | 5 +++++ src/progress.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 9fca8864..6976327e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-06-27 Hrvoje Niksic + + * progress.c (set_progress_implementation): Type COLON as const + char *. + 2005-06-27 Hrvoje Niksic * utils.c (with_thousand_seps): Handle negative numbers. diff --git a/src/progress.c b/src/progress.c index 4563ea42..613162fe 100644 --- a/src/progress.c +++ b/src/progress.c @@ -76,7 +76,7 @@ static int current_impl_locked; #define DEFAULT_PROGRESS_IMPLEMENTATION "bar" -/* Fallnback progress implementation should be something that works +/* Fallback progress implementation should be something that works under all display types. If you put something other than "dot" here, remember that bar_set_params tries to switch to this if we're not running on a TTY. So changing this to "bar" could cause @@ -108,7 +108,7 @@ set_progress_implementation (const char *name) { int i, namelen; struct progress_implementation *pi = implementations; - char *colon; + const char *colon; if (!name) name = DEFAULT_PROGRESS_IMPLEMENTATION; -- 2.39.2