aboutsummaryrefslogtreecommitdiff
path: root/miscutils/adjtimex.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/adjtimex.c')
-rw-r--r--miscutils/adjtimex.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c
index ce6f8ccd8..c1718e909 100644
--- a/miscutils/adjtimex.c
+++ b/miscutils/adjtimex.c
@@ -95,9 +95,10 @@ int adjtimex_main(int argc UNUSED_PARAM, char **argv)
95 95
96 memset(&txc, 0, sizeof(txc)); 96 memset(&txc, 0, sizeof(txc));
97 97
98 opt_complementary = "=0"; /* no valid non-option parameters */ 98 opt = getopt32(argv, "^" "qo:f:p:t:"
99 opt = getopt32(argv, "qo:f:p:t:", 99 "\0" "=0"/*no valid non-option args*/,
100 &opt_o, &opt_f, &opt_p, &opt_t); 100 &opt_o, &opt_f, &opt_p, &opt_t
101 );
101 //if (opt & 0x1) // -q 102 //if (opt & 0x1) // -q
102 if (opt & 0x2) { // -o 103 if (opt & 0x2) { // -o
103 txc.offset = xatol(opt_o); 104 txc.offset = xatol(opt_o);