]> git.sur5r.net Git - i3/i3/blobdiff - testcases/inject_randr1.5.c
Remove \n from errx and die messages
[i3/i3] / testcases / inject_randr1.5.c
index 5506d67e78b1bf748edd692a9a2f7e7f5450a4fe..29b6a33d4c8636a02fd994e58202c68759d1964b 100644 (file)
@@ -34,7 +34,7 @@ static void read_server_x11_packet_cb(EV_P_ ev_io *w, int revents);
 
 static char *sun_path = NULL;
 
-void cleanup_socket(void) {
+static void cleanup_socket(void) {
     if (sun_path != NULL) {
         unlink(sun_path);
         free(sun_path);
@@ -402,7 +402,7 @@ int main(int argc, char *argv[]) {
     }
 
     if (optind >= argc) {
-        errx(EXIT_FAILURE, "syntax: %s [options] <command>\n", argv[0]);
+        errx(EXIT_FAILURE, "syntax: %s [options] <command>", argv[0]);
     }
 
     int fd = socket(AF_LOCAL, SOCK_STREAM, 0);