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)
This commit is contained in:
parent
ac6a20066f
commit
0c85e08d0f
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue