projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5659407
)
adjtimex: fix argument types (most importantly, allow negative ones)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 14 Mar 2007 23:00:26 +0000
(23:00 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 14 Mar 2007 23:00:26 +0000
(23:00 -0000)
miscutils/adjtimex.c
patch
|
blob
|
history
diff --git
a/miscutils/adjtimex.c
b/miscutils/adjtimex.c
index 985ee2d0ce3c38e68547ef6953c3eb923a1f07f9..22fd39e8e1dd5e9428247de00b8d1d48067ff6ee 100644
(file)
--- a/
miscutils/adjtimex.c
+++ b/
miscutils/adjtimex.c
@@
-55,19
+55,19
@@
int adjtimex_main(int argc, char **argv)
&opt_o, &opt_f, &opt_p, &opt_t);
//if (opt & 0x1) // -q
if (opt & 0x2) { // -o
&opt_o, &opt_f, &opt_p, &opt_t);
//if (opt & 0x1) // -q
if (opt & 0x2) { // -o
- txc.offset = xato
i
(opt_o);
+ txc.offset = xato
l
(opt_o);
txc.modes |= ADJ_OFFSET_SINGLESHOT;
}
if (opt & 0x4) { // -f
txc.modes |= ADJ_OFFSET_SINGLESHOT;
}
if (opt & 0x4) { // -f
- txc.freq = xato
u
(opt_f);
+ txc.freq = xato
l
(opt_f);
txc.modes |= ADJ_FREQUENCY;
}
if (opt & 0x8) { // -p
txc.modes |= ADJ_FREQUENCY;
}
if (opt & 0x8) { // -p
- txc.constant = xato
i
(opt_p);
+ txc.constant = xato
l
(opt_p);
txc.modes |= ADJ_TIMECONST;
}
if (opt & 0x10) { // -t
txc.modes |= ADJ_TIMECONST;
}
if (opt & 0x10) { // -t
- txc.tick = xato
i
(opt_t);
+ txc.tick = xato
l
(opt_t);
txc.modes |= ADJ_TICK;
}
if (argc != optind) { /* no valid non-option parameters */
txc.modes |= ADJ_TICK;
}
if (argc != optind) { /* no valid non-option parameters */