summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-21 12:51:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-21 12:51:29 +0000
commitab09043a271800dd3124502738d3651ac317899d (patch)
tree8a2b4c63a30644a7893d4a02d5f5c04b2f4569fe /c
parentfd808baef45e15c2bf83e1228a18a29965e46882 (diff)
downloadrtems-ab09043a271800dd3124502738d3651ac317899d.tar.bz2
Fixed warning about pointer/integer conversion which turned out to be
a missed "&" on a write.
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/libnetworking/libc/res_send.c2
-rw-r--r--c/src/lib/libnetworking/libc/res_send.c2
-rw-r--r--c/src/libnetworking/libc/res_send.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/c/src/exec/libnetworking/libc/res_send.c b/c/src/exec/libnetworking/libc/res_send.c
index 1b03bb5b1b..8ab2d43804 100644
--- a/c/src/exec/libnetworking/libc/res_send.c
+++ b/c/src/exec/libnetworking/libc/res_send.c
@@ -425,7 +425,7 @@ res_send(buf, buflen, ans, anssiz)
/*
* RTEMS doesn't have writev (yet)
*/
- if ((write (s, len, INT16SZ) != INT16SZ)
+ if ((write (s, &len, INT16SZ) != INT16SZ)
|| (write (s, buf, buflen) != buflen)) {
#endif
terrno = errno;
diff --git a/c/src/lib/libnetworking/libc/res_send.c b/c/src/lib/libnetworking/libc/res_send.c
index 1b03bb5b1b..8ab2d43804 100644
--- a/c/src/lib/libnetworking/libc/res_send.c
+++ b/c/src/lib/libnetworking/libc/res_send.c
@@ -425,7 +425,7 @@ res_send(buf, buflen, ans, anssiz)
/*
* RTEMS doesn't have writev (yet)
*/
- if ((write (s, len, INT16SZ) != INT16SZ)
+ if ((write (s, &len, INT16SZ) != INT16SZ)
|| (write (s, buf, buflen) != buflen)) {
#endif
terrno = errno;
diff --git a/c/src/libnetworking/libc/res_send.c b/c/src/libnetworking/libc/res_send.c
index 1b03bb5b1b..8ab2d43804 100644
--- a/c/src/libnetworking/libc/res_send.c
+++ b/c/src/libnetworking/libc/res_send.c
@@ -425,7 +425,7 @@ res_send(buf, buflen, ans, anssiz)
/*
* RTEMS doesn't have writev (yet)
*/
- if ((write (s, len, INT16SZ) != INT16SZ)
+ if ((write (s, &len, INT16SZ) != INT16SZ)
|| (write (s, buf, buflen) != buflen)) {
#endif
terrno = errno;