diff options
author | otto <> | 2005-03-25 13:24:12 +0000 |
---|---|---|
committer | otto <> | 2005-03-25 13:24:12 +0000 |
commit | 2f490723a2e673b2457f65c4b06cacb7d700a3e8 (patch) | |
tree | c9dcd3a58da3f7404d9e626fe10abdd67c384fba /src/lib/libc/net/recv.c | |
parent | 9a03506f8308b6023a12f108a2072feb958607a6 (diff) | |
download | openbsd-2f490723a2e673b2457f65c4b06cacb7d700a3e8.tar.gz openbsd-2f490723a2e673b2457f65c4b06cacb7d700a3e8.tar.bz2 openbsd-2f490723a2e673b2457f65c4b06cacb7d700a3e8.zip |
ansify. ok deraadt@ moritz@
Diffstat (limited to 'src/lib/libc/net/recv.c')
-rw-r--r-- | src/lib/libc/net/recv.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libc/net/recv.c b/src/lib/libc/net/recv.c index 0947465377..981b5e7a6a 100644 --- a/src/lib/libc/net/recv.c +++ b/src/lib/libc/net/recv.c | |||
@@ -28,7 +28,7 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #if defined(LIBC_SCCS) && !defined(lint) | 30 | #if defined(LIBC_SCCS) && !defined(lint) |
31 | static char rcsid[] = "$OpenBSD: recv.c,v 1.3 2003/06/02 20:18:35 millert Exp $"; | 31 | static char rcsid[] = "$OpenBSD: recv.c,v 1.4 2005/03/25 13:24:12 otto Exp $"; |
32 | #endif /* LIBC_SCCS and not lint */ | 32 | #endif /* LIBC_SCCS and not lint */ |
33 | 33 | ||
34 | #include <sys/types.h> | 34 | #include <sys/types.h> |
@@ -37,10 +37,7 @@ static char rcsid[] = "$OpenBSD: recv.c,v 1.3 2003/06/02 20:18:35 millert Exp $" | |||
37 | #include <stddef.h> | 37 | #include <stddef.h> |
38 | 38 | ||
39 | ssize_t | 39 | ssize_t |
40 | recv(s, buf, len, flags) | 40 | recv(int s, void *buf, size_t len, int flags) |
41 | int s, flags; | ||
42 | size_t len; | ||
43 | void *buf; | ||
44 | { | 41 | { |
45 | return (recvfrom(s, buf, len, flags, NULL, 0)); | 42 | return (recvfrom(s, buf, len, flags, NULL, 0)); |
46 | } | 43 | } |