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 | fbbc93906e624113a7eeaa6d2dd6ddc01072804d (patch) | |
| tree | 432c182c9bce21ae325498b7a1af59cae9df2db6 /unix/tclUnixNotfy.c | |
| parent | 2c5d1036db0d85c674967af5103c714092e279a7 (diff) | |
| download | tcl-fbbc93906e624113a7eeaa6d2dd6ddc01072804d.zip tcl-fbbc93906e624113a7eeaa6d2dd6ddc01072804d.tar.gz tcl-fbbc93906e624113a7eeaa6d2dd6ddc01072804d.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", |
