Line 0
Link Here
|
|
|
1 |
--- src/rpa.c.orig Tue Feb 1 12:57:33 2005 |
2 |
+++ src/rpa.c Mon May 23 18:35:47 2005 |
3 |
@@ -27,7 +27,7 @@ |
4 |
#endif |
5 |
|
6 |
#include <sys/uio.h> |
7 |
-#include <stropts.h> |
8 |
+#include <sys/un.h> |
9 |
|
10 |
#ifdef HAVE_UNISTD_H |
11 |
#include <unistd.h> |
12 |
@@ -196,7 +196,7 @@ |
13 |
goto Fail; |
14 |
} |
15 |
|
16 |
- memset(&usb, 0, sizeof(sun)); |
17 |
+ memset(&usb, 0, sizeof(usb)); |
18 |
usb.sun_family = AF_UNIX; |
19 |
strcpy(usb.sun_path, path); |
20 |
|
21 |
@@ -210,7 +210,7 @@ |
22 |
|
23 |
s_snprintf(path, sizeof(path), "%s/%s/unix", PATH_RPAD_DIR, rp->service); |
24 |
|
25 |
- memset(&usb, 0, sizeof(sun)); |
26 |
+ memset(&usb, 0, sizeof(usb)); |
27 |
usb.sun_family = AF_UNIX; |
28 |
strcpy(usb.sun_path, path); |
29 |
|
30 |
@@ -399,8 +399,6 @@ |
31 |
msg.msg_iov = iov; |
32 |
msg.msg_iovlen = 1; |
33 |
msg.msg_name = NULL; |
34 |
- msg.msg_accrights = (void *) &rfd; |
35 |
- msg.msg_accrightslen = sizeof(rfd); |
36 |
|
37 |
rfd = -1; |
38 |
rcode = -1; |