Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- many gcc4 compilation fixes (warnings)
[fs/lustre-release.git]
/
lustre
/
tests
/
mmap_sanity.c
diff --git
a/lustre/tests/mmap_sanity.c
b/lustre/tests/mmap_sanity.c
index
6938b1b
..
6147071
100644
(file)
--- a/
lustre/tests/mmap_sanity.c
+++ b/
lustre/tests/mmap_sanity.c
@@
-127,8
+127,9
@@
static int mmap_wait(char *str, int timeout)
int fromlen =sizeof(from);
memset(buffer, 0, sizeof(buffer));
int fromlen =sizeof(from);
memset(buffer, 0, sizeof(buffer));
- rc = recvfrom(sockfd, buffer, sizeof(buffer), 0,
- (struct sockaddr *)&from, &fromlen);
+ rc = recvfrom(sockfd, buffer, sizeof(buffer),
+ 0, (struct sockaddr *)&from,
+ (socklen_t *)&fromlen);
if (rc <= 0) {
perror("recvfrom()");
rc = errno;
if (rc <= 0) {
perror("recvfrom()");
rc = errno;