mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
reformat clock_adjtime with always-true condition removed
This commit is contained in:
parent
e0b17ef81e
commit
28be61227c
1 changed files with 46 additions and 48 deletions
|
@ -38,7 +38,6 @@ int clock_adjtime (clockid_t clock_id, struct timex *utx)
|
|||
{
|
||||
int r = -ENOSYS;
|
||||
#ifdef SYS_clock_adjtime64
|
||||
if (1) {
|
||||
struct ktimex64 ktx = {
|
||||
.modes = utx->modes,
|
||||
.offset = utx->offset,
|
||||
|
@ -86,7 +85,6 @@ int clock_adjtime (clockid_t clock_id, struct timex *utx)
|
|||
utx->stbcnt = ktx.stbcnt;
|
||||
utx->tai = ktx.tai;
|
||||
}
|
||||
}
|
||||
if (SYS_clock_adjtime == SYS_clock_adjtime64 || r!=-ENOSYS)
|
||||
return __syscall_ret(r);
|
||||
if ((utx->modes & ADJ_SETOFFSET) && !IS32BIT(utx->time.tv_sec))
|
||||
|
|
Loading…
Add table
Reference in a new issue