[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] libc: POSIX: Prototypen von recvfrom/sendto gefixt



! libc: POSIX: Prototypen von recvfrom/sendto gefixt

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/modules/include/sys/socket.h |    2 +-
 src/modules/lib/posix/socket.c   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/include/sys/socket.h b/src/modules/include/sys/socket.h
index bf3e6aa..a8446f6 100644
--- a/src/modules/include/sys/socket.h
+++ b/src/modules/include/sys/socket.h
@@ -114,7 +114,7 @@ ssize_t send(int socket, const void *buffer, size_t length, int flags);
  * Fuer TCP werden die zusaetzlichen Parameter ignoriert
  */
 ssize_t recvfrom(int socket, const void *buffer, size_t length, int flags,
-    const struct sockaddr* from, socklen_t from_len);
+    const struct sockaddr* from, socklen_t* from_len);
 
 /**
  * Sendet eine Anzahl Bytes ueber einen Socket
diff --git a/src/modules/lib/posix/socket.c b/src/modules/lib/posix/socket.c
index ec382c1..f0b97e1 100644
--- a/src/modules/lib/posix/socket.c
+++ b/src/modules/lib/posix/socket.c
@@ -352,7 +352,7 @@ ssize_t send(int socket, const void *buffer, size_t length, int flags)
  * Fuer TCP werden die zusaetzlichen Parameter ignoriert
  */
 ssize_t recvfrom(int socket, const void *buffer, size_t length, int flags,
-    const struct sockaddr* from, socklen_t from_len)
+    const struct sockaddr* from, socklen_t* from_len)
 {
     return recv(socket, buffer, length, flags);
 }
@@ -363,7 +363,7 @@ ssize_t recvfrom(int socket, const void *buffer, size_t length, int flags,
  * Fuer TCP werden die zusaetzlichen Parameter ignoriert
  */
 ssize_t sendto(int socket, const void *buffer, size_t length, int flags,
-    const struct sockaddr* to, socklen_t from_len)
+    const struct sockaddr* to, socklen_t to_len)
 {
     return send(socket, buffer, length, flags);
 }
-- 
1.6.0.2