Sort includes according to NetBSD KNF
[khatus.git] / x5 / khatus.c
index 3cccf56..bdf2c1d 100644 (file)
@@ -1,15 +1,16 @@
-#include <fcntl.h>
-#include <unistd.h>
 #include <sys/select.h>
 #include <sys/stat.h>
-#include <X11/Xlib.h>
 
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
+#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
+
+#include <X11/Xlib.h>
 
 #define debug(args...) {fprintf(stderr, "[debug] " args);}
 #define info( args...) {fprintf(stderr, "[info] "  args);}
@@ -268,7 +269,7 @@ void
 read_all(Config *cfg, char *buf)
 {
        fd_set fds;
-       int maxfd;
+       int maxfd = -1;
        int ready;
        struct stat st;
 
@@ -313,7 +314,7 @@ main(int argc, char *argv[])
        int prefix = 0;
        char *buf;
        Config *cfg = &defaults;
-       Display *display;
+       Display *display = NULL;
 
        argv0 = argv[0];
 
This page took 0.03008 seconds and 4 git commands to generate.