diff --git a/irqbalance.c b/irqbalance.c index 35ad4da..95bb80a 100644 --- a/irqbalance.c +++ b/irqbalance.c @@ -330,7 +330,9 @@ gboolean sock_handle(gint fd, GIOCondition condition, gpointer user_data __attri int valid_user = 0; struct iovec iov = { buff, 500 }; - struct msghdr msg = { NULL, 0, &iov, 1, NULL, 0, 0 }; + struct msghdr msg = { 0 }; + msg.msg_iov = &iov; + msg.msg_iovlen = 1; msg.msg_control = malloc(CMSG_SPACE(sizeof(struct ucred))); msg.msg_controllen = CMSG_SPACE(sizeof(struct ucred)); diff --git a/procinterrupts.c b/procinterrupts.c index 6b37a88..c5c034c 100644 --- a/procinterrupts.c +++ b/procinterrupts.c @@ -148,6 +148,9 @@ GList* collect_full_irq_list() char *line = NULL; size_t size = 0; char *irq_name, *irq_mod, *savedptr, *last_token, *p; +#ifdef AARCH64 + char *tmp; +#endif file = fopen("/proc/interrupts", "r"); if (!file) diff --git a/ui/irqbalance-ui.c b/ui/irqbalance-ui.c index 74ba93c..75fc60f 100644 --- a/ui/irqbalance-ui.c +++ b/ui/irqbalance-ui.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include