int
main(int argc, char *argv[])
{
- int width;
+ int width = 0;
int nfifos = 0;
- int seplen;
+ int seplen = 0;
int prefix = 0;
char *buf;
- Config *cfg = &defaults;
+ Config cfg0 = defaults;
+ Config *cfg = &cfg0;
Display *display = NULL;
argv0 = argv[0];
if (cfg->output_to_x_root_window && !(display = XOpenDisplay(NULL)))
fatal("XOpenDisplay failed with: %p\n", display);
/* TODO: nanosleep and nano time diff */
+ /* TODO: Handle signals */
for (;;) {
/* TODO: Check TTL and maybe blank-out */
/* TODO: How to trigger TTL check? On select? Alarm signal? */