#include "list.h"
#include "blkdev.h"
-static const char *default_disks[] = {
+static const char *const default_disks[] = {
#ifdef __GNU__
"/dev/hd0",
"/dev/sd0",
static int ui_help(void)
{
size_t i;
- static const char *help[] = {
+ static const char *const help[] = {
N_("This is cfdisk, a curses-based disk partitioning program."),
N_("It lets you create, delete, and modify partitions on a block device."),
" ",
char *strsz;
int rc = 0, ct = 0;
- static const char *colnames[] = { N_("Start"), N_("End"), N_("Sectors"), N_("Size") };
+ static const char *const colnames[] = { N_("Start"), N_("End"), N_("Sectors"), N_("Size") };
static const int colids[] = { FDISK_FIELD_START, FDISK_FIELD_END, FDISK_FIELD_SECTORS, FDISK_FIELD_SIZE };
rc = fdisk_get_freespaces(cxt, &tb);
static inline int wipemode_from_string(const char *str)
{
size_t i;
- static const char *modes[] = {
+ static const char *const modes[] = {
[WIPEMODE_AUTO] = "auto",
[WIPEMODE_NEVER] = "never",
[WIPEMODE_ALWAYS] = "always"
}
};
-static const struct menu *menus[] = {
+static const struct menu *const menus[] = {
&menu_gpt,
&menu_sun,
&menu_sgi,
#define FSCK_RUNTIME_DIRNAME "/run/fsck"
-static const char *ignored_types[] = {
+static const char *const ignored_types[] = {
"ignore",
"iso9660",
"sw",
NULL
};
-static const char *really_wanted[] = {
+static const char *const really_wanted[] = {
"minix",
"ext2",
"ext3",
static int fs_ignored_type(struct libmnt_fs *fs)
{
- const char **ip, *type;
+ const char *const*ip, *type;
if (!mnt_fs_is_regularfs(fs))
return 1;