summaryrefslogtreecommitdiff
path: root/ubusd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubusd.c')
-rw-r--r--ubusd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ubusd.c b/ubusd.c
index 7738f50..d6a72e7 100644
--- a/ubusd.c
+++ b/ubusd.c
@@ -96,8 +96,8 @@ static int ubus_msg_writev(int fd, struct ubus_msg_buf *ub, int offset)
{
static struct iovec iov[2];
static struct {
- struct cmsghdr h;
int fd;
+ struct cmsghdr h;
} fd_buf = {
.h = {
.cmsg_len = sizeof(fd_buf),
@@ -216,8 +216,8 @@ static void client_cb(struct uloop_fd *sock, unsigned int events)
struct ubus_msg_buf *ub;
static struct iovec iov;
static struct {
- struct cmsghdr h;
int fd;
+ struct cmsghdr h;
} fd_buf = {
.h = {
.cmsg_type = SCM_RIGHTS,