diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-11-26 13:02:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-11-26 13:02:14 +0900 |
commit | f8453ccf3e0b30e1e93b5daeb2c95af0c90da6fd (patch) | |
tree | 864d0d6c80284c7fdb1f8c143eb9cab07426b6cb | |
parent | 76c89b83c57ca3adaf305a0405618ca5b58a38cd (diff) | |
download | kile-f8453ccf3e0b30e1e93b5daeb2c95af0c90da6fd.tar.gz kile-f8453ccf3e0b30e1e93b5daeb2c95af0c90da6fd.zip |
Improve code of commit 76c89b8.r14.1.0
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | src/kile/kilejscript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kile/kilejscript.cpp b/src/kile/kilejscript.cpp index 2e69338..6008168 100644 --- a/src/kile/kilejscript.cpp +++ b/src/kile/kilejscript.cpp @@ -67,8 +67,8 @@ void KJSCPUGuard::start(unsigned int ms, unsigned int i_ms) { oldAlarmHandler = signal(SIGVTALRM, alarmHandler); itimerval tv = { - { static_cast<__time_t>( i_ms / 1000 ), static_cast<__suseconds_t>( (i_ms % 1000) * 1000 ) }, - { static_cast<__time_t>( ms / 1000 ), static_cast<__suseconds_t>( (ms % 1000) * 1000 ) } + { static_cast<time_t>( i_ms / 1000 ), static_cast<suseconds_t>( (i_ms % 1000) * 1000 ) }, + { static_cast<time_t>( ms / 1000 ), static_cast<suseconds_t>( (ms % 1000) * 1000 ) } }; setitimer(ITIMER_VIRTUAL, &tv, &oldtv); } |