diff options
author | martin <martin@NetBSD.org> | 2007-05-05 18:09:24 +0000 |
---|---|---|
committer | martin <martin@NetBSD.org> | 2007-05-05 18:09:24 +0000 |
commit | cf25235c9be0863486788bf1e4b6dbde3c6f5476 (patch) | |
tree | c1ac81954f6c7146d71d3f2e438c0739105e0041 | |
parent | 8c90873d6905d650ba8edba93a5bc58d0236cad8 (diff) | |
download | bsd-progress-cf25235c9be0863486788bf1e4b6dbde3c6f5476.tar.gz bsd-progress-cf25235c9be0863486788bf1e4b6dbde3c6f5476.tar.zst bsd-progress-cf25235c9be0863486788bf1e4b6dbde3c6f5476.zip |
const-as-const-can: make the "suffixes" pointers const, as probably was
intended, but done wrong originally (redundant const was removed
per PR bin/36280)
-rw-r--r-- | progressbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/progressbar.c b/progressbar.c index 91a3069..b9345cf 100644 --- a/progressbar.c +++ b/progressbar.c @@ -1,4 +1,4 @@ -/* $NetBSD: progressbar.c,v 1.16 2007/05/05 16:57:54 christos Exp $ */ +/* $NetBSD: progressbar.c,v 1.17 2007/05/05 18:09:24 martin Exp $ */ /*- * Copyright (c) 1997-2007 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: progressbar.c,v 1.16 2007/05/05 16:57:54 christos Exp $"); +__RCSID("$NetBSD: progressbar.c,v 1.17 2007/05/05 18:09:24 martin Exp $"); #endif /* not lint */ /* @@ -93,7 +93,7 @@ updateprogressmeter(int dummy) /* * List of order of magnitude suffixes, per IEC 60027-2. */ -static const char *suffixes[] = { +static const char * const suffixes[] = { "", /* 2^0 (byte) */ "KiB", /* 2^10 Kibibyte */ "MiB", /* 2^20 Mebibyte */ |