summaryrefslogtreecommitdiff
path: root/miscutils/adjtimex.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
commit6ca409e0e4c198fe3081346eebbae3f068fe605a (patch)
tree060cb05d99220a1eda399194d1209c269f0e8cd8 /miscutils/adjtimex.c
parent4185548984357df91311f30c8e43d95f33922576 (diff)
downloadbusybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
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)