misc changes

This commit is contained in:
randomuser 2022-09-17 10:01:47 -05:00
parent ae905b0ebf
commit b6514b3374
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
bspc: bspc:
cc bspc.c -o bspc -lxcb cc bspc.c -o bspc -lxcb -Wall -Wextra -std=c99
clean: clean:
rm bspc rm bspc

3
bspc.c
View File

@ -35,6 +35,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
#include <xcb/xcb.h>
#include <poll.h> #include <poll.h>
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
@ -253,7 +254,7 @@ char *send_msg_to_bspwm(char *args[], int count)
err("Failed to send the data.\n"); err("Failed to send the data.\n");
} }
int ret = EXIT_SUCCESS, nb; int nb;
struct pollfd fds[] = { struct pollfd fds[] = {
{sock_fd, POLLIN, 0}, {sock_fd, POLLIN, 0},