aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-10-20 11:17:48 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-10-20 11:17:48 +0000
commit1f0262bcdb352e9a75a4e5f48cd63d05714e2859 (patch)
treee191e1f4019e7b0daf47f9077e375588f77b3c6a /miscutils
parent0fa9deda1706b19e5f42ed392483a582880aaca3 (diff)
downloadbusybox-1f0262bcdb352e9a75a4e5f48cd63d05714e2859.tar.gz
another more const
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/adjtimex.c6
1 files changed, 3 insertions, 3 deletions
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 <sys/timex.h>
#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:");