Skip to content

Commit

Permalink
Merge pull request #37 from fabled/master
Browse files Browse the repository at this point in the history
various build and compile fixes
  • Loading branch information
ppwaskie authored Jan 17, 2017
2 parents 0e0dd4c + b0f77c1 commit 54cb9bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion irqbalance.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
3 changes: 3 additions & 0 deletions procinterrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions ui/irqbalance-ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <errno.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>
Expand Down

0 comments on commit 54cb9bf

Please sign in to comment.