Skip to content

Commit 669a4ba

Browse files
authored
Replace tabs by spaces (#12156)
Motivation: Let's be consistent and not use tabs Modifications: Replace tabs by spaces Result: Cleanup
1 parent d1607d5 commit 669a4ba

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

transport-native-epoll/src/main/c/netty_epoll_native.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,14 @@ static jint netty_epoll_native_epollWait0(JNIEnv* env, jclass clazz, jint efd, j
278278
// only reschedule the timer if there is a newer event.
279279
// -1 is a special value used by EpollEventLoop.
280280
if (tvSec != ((jint) -1) && tvNsec != ((jint) -1)) {
281-
struct itimerspec ts;
282-
memset(&ts.it_interval, 0, sizeof(struct timespec));
283-
ts.it_value.tv_sec = tvSec;
284-
ts.it_value.tv_nsec = tvNsec;
285-
if (timerfd_settime(timerFd, 0, &ts, NULL) < 0) {
286-
netty_unix_errors_throwChannelExceptionErrorNo(env, "timerfd_settime() failed: ", errno);
287-
return -1;
288-
}
281+
struct itimerspec ts;
282+
memset(&ts.it_interval, 0, sizeof(struct timespec));
283+
ts.it_value.tv_sec = tvSec;
284+
ts.it_value.tv_nsec = tvNsec;
285+
if (timerfd_settime(timerFd, 0, &ts, NULL) < 0) {
286+
netty_unix_errors_throwChannelExceptionErrorNo(env, "timerfd_settime() failed: ", errno);
287+
return -1;
288+
}
289289
}
290290
return netty_epoll_native_epollWait(env, clazz, efd, address, len, -1);
291291
}

0 commit comments

Comments
 (0)