]> git.cameronkatri.com Git - bsd-progress.git/commitdiff
const-as-const-can: make the "suffixes" pointers const, as probably was
authormartin <martin@NetBSD.org>
Sat, 5 May 2007 18:09:24 +0000 (18:09 +0000)
committermartin <martin@NetBSD.org>
Sat, 5 May 2007 18:09:24 +0000 (18:09 +0000)
intended, but done wrong originally (redundant const was removed
per PR bin/36280)

progressbar.c

index 91a3069b81b2758e86020d097cd8f56d6abcfbf6..b9345cfadd9e85e914251b21cfc62ac4547a91d2 100644 (file)
@@ -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 */