static void finalize_xlib(GVJ_t *firstjob)
{
GVJ_t *job;
- Display *dpy;
- KeyCode *keycodes;
- int scr, inotify_fd=0, xlib_fd, ret, events;
+ Display *dpy = (Display *)(firstjob->display);
+ int scr = firstjob->screen;
+ KeyCode *keycodes= firstjob->keycodes;
+ int inotify_fd=0, xlib_fd, ret, events;
fd_set rfds;
struct timeval timeout;
#ifdef HAVE_SYS_INOTIFY_H
static char *dir;
char *p, *cwd = NULL;
- dpy = (Display *)(firstjob->display);
- scr = firstjob->screen;
- keycodes = firstjob->keycodes;
-
inotify_fd = inotify_init();
if (inotify_fd < 0) {
fprintf(stderr,"inotify_init() failed\n");