aboutsummaryrefslogtreecommitdiff
path: root/miscutils/adjtimex.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/adjtimex.c')
-rw-r--r--miscutils/adjtimex.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c
index 9f8227cf0..1e6d15fa7 100644
--- a/miscutils/adjtimex.c
+++ b/miscutils/adjtimex.c
@@ -14,7 +14,10 @@
14#include "libbb.h" 14#include "libbb.h"
15#include <sys/timex.h> 15#include <sys/timex.h>
16 16
17static const struct {int bit; const char *name;} statlist[] = { 17static const struct {
18 int bit;
19 const char *name;
20} statlist[] = {
18 { STA_PLL, "PLL" }, 21 { STA_PLL, "PLL" },
19 { STA_PPSFREQ, "PPSFREQ" }, 22 { STA_PPSFREQ, "PPSFREQ" },
20 { STA_PPSTIME, "PPSTIME" }, 23 { STA_PPSTIME, "PPSTIME" },
@@ -28,15 +31,17 @@ static const struct {int bit; const char *name;} statlist[] = {
28 { STA_PPSWANDER, "PPSWANDER" }, 31 { STA_PPSWANDER, "PPSWANDER" },
29 { STA_PPSERROR, "PPSERROR" }, 32 { STA_PPSERROR, "PPSERROR" },
30 { STA_CLOCKERR, "CLOCKERR" }, 33 { STA_CLOCKERR, "CLOCKERR" },
31 { 0, NULL } }; 34 { 0, NULL }
35};
32 36
33static const char * const ret_code_descript[] = { 37static const char *const ret_code_descript[] = {
34 "clock synchronized", 38 "clock synchronized",
35 "insert leap second", 39 "insert leap second",
36 "delete leap second", 40 "delete leap second",
37 "leap second in progress", 41 "leap second in progress",
38 "leap second has occurred", 42 "leap second has occurred",
39 "clock not synchronized" }; 43 "clock not synchronized"
44};
40 45
41int adjtimex_main(int argc, char **argv); 46int adjtimex_main(int argc, char **argv);
42int adjtimex_main(int argc, char **argv) 47int adjtimex_main(int argc, char **argv)