Module: xenomai-head
Branch: master
Commit: 81996eb886558b20595d212687c6076ecdb8a5c2
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=81996eb886558b20595d212687c6076ecdb8a5c2

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Sep  7 17:07:26 2009 +0200

rtipc/xddp: fix null address

---

 ksrc/drivers/ipc/xddp.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/ipc/xddp.c b/ksrc/drivers/ipc/xddp.c
index a8b5900..c1f7a73 100644
--- a/ksrc/drivers/ipc/xddp.c
+++ b/ksrc/drivers/ipc/xddp.c
@@ -59,7 +59,10 @@ struct xddp_socket {
        int (*monitor)(int s, int event, long arg);
 };
 
-static struct sockaddr_ipc nullsa = { .sipc_port = -1 };
+static struct sockaddr_ipc nullsa = {
+       .sipc_family = AF_RTIPC,
+       .sipc_port = -1
+};
 
 static struct xddp_socket *portmap[CONFIG_XENO_OPT_PIPE_NRDEV];
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to