diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-04-26 13:48:13 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-04-26 13:48:13 (GMT) |
commit | 22a21905e22a2ad6ae86c293bac257eb7db9e68a (patch) | |
tree | 432c182c9bce21ae325498b7a1af59cae9df2db6 /unix/tclUnixNotfy.c | |
parent | f596ce75b4b1eeb5b09785d3faf012d4a4587f42 (diff) | |
download | tcl-22a21905e22a2ad6ae86c293bac257eb7db9e68a.zip tcl-22a21905e22a2ad6ae86c293bac257eb7db9e68a.tar.gz tcl-22a21905e22a2ad6ae86c293bac257eb7db9e68a.tar.bz2 |
Move some variable declarations closer to where they are used. No change in functionality.
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r-- | unix/tclUnixNotfy.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c index 17307dc..5bc753a 100644 --- a/unix/tclUnixNotfy.c +++ b/unix/tclUnixNotfy.c @@ -102,11 +102,6 @@ void Tcl_AlertNotifier( ClientData clientData) { -#ifdef NOTIFIER_EPOLL -#ifdef HAVE_EVENTFD - uint64_t eventFdVal; -#endif /* HAVE_EVENTFD */ -#endif /* NOTIFIER_EPOLL */ if (tclNotifierHooks.alertNotifierProc) { tclNotifierHooks.alertNotifierProc(clientData); return; @@ -128,7 +123,7 @@ Tcl_AlertNotifier( #else ThreadSpecificData *tsdPtr = clientData; #if defined(NOTIFIER_EPOLL) && defined(HAVE_EVENTFD) - eventFdVal = 1; + uint64_t eventFdVal = 1; if (write(tsdPtr->triggerEventFd, &eventFdVal, sizeof(eventFdVal)) != sizeof(eventFdVal)) { Tcl_Panic("Tcl_AlertNotifier: unable to write to %p->triggerEventFd", |