another more const

This commit is contained in:
"Vladimir N. Oleynik"
2005-10-20 11:17:48 +00:00
parent 0fa9deda17
commit 1f0262bcdb
12 changed files with 33 additions and 35 deletions

View File

@ -170,7 +170,7 @@ static int show_color = 0;
/* long option entry used only for --color, which has no short option
* equivalent. */
static struct option ls_color_opt[] =
static const struct option ls_color_opt[] =
{
{"color", optional_argument, NULL, 1},
{NULL, 0, NULL, 0}

View File

@ -81,9 +81,9 @@ static char const *human_time(time_t t)
static char const *human_fstype(long f_type)
{
int i;
static struct types {
static const struct types {
long type;
char *fs;
const char *fs;
} humantypes[] = {
{ 0xADFF, "affs" },
{ 0x1Cd1, "devpts" },