From 1f0262bcdb352e9a75a4e5f48cd63d05714e2859 Mon Sep 17 00:00:00 2001 From: "\"Vladimir N. Oleynik\"" Date: Thu, 20 Oct 2005 11:17:48 +0000 Subject: another more const --- miscutils/adjtimex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'miscutils/adjtimex.c') diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c index 110c02654..ec3e4fd62 100644 --- a/miscutils/adjtimex.c +++ b/miscutils/adjtimex.c @@ -47,7 +47,7 @@ #include #include "busybox.h" -static struct {int bit; char *name;} statlist[] = { +static const struct {int bit; const char *name;} statlist[] = { { STA_PLL, "PLL" }, { STA_PPSFREQ, "PPSFREQ" }, { STA_PPSTIME, "PPSTIME" }, @@ -63,7 +63,7 @@ static struct {int bit; char *name;} statlist[] = { { STA_CLOCKERR, "CLOCKERR" }, { 0, NULL } }; -static char *ret_code_descript[] = { +static const char * const ret_code_descript[] = { "clock synchronized", "insert leap second", "delete leap second", @@ -88,7 +88,7 @@ int main(int argc, char ** argv) struct timex txc; int quiet=0; int c, i, ret, sep; - char *descript; + const char *descript; txc.modes=0; for (;;) { c = getopt( argc, argv, "qo:f:p:t:"); -- cgit v1.2.3