-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compilation errors #1124
base: master
Are you sure you want to change the base?
Fix compilation errors #1124
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,10 +103,10 @@ char *simplePing(union u_argument *inVar, SVCXPRT * transp) | |
char *svc_getcaller_test(union u_argument *inVar, SVCXPRT * transp) | ||
{ | ||
//In this function we test svc_getcaller function basically (simple call) | ||
struct sockaddr_in *sa = NULL; | ||
struct sockaddr *sa = NULL; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NOTE: IPv6 is not used at all, try to run |
||
static int result; | ||
|
||
sa = svc_getcaller(transp); | ||
sa = (struct sockaddr *) svc_getcaller(transp); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The casting would be needed in many RPC tests:
It would make sense to fix them all (with sed or awk scripting to make editing fast). |
||
//If the result is not NULL we consider that function call succeeds | ||
//so returns 0 (PASS) | ||
result = (sa != NULL) ? 0 : 1; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly you are trying to fix?
struct fs_quota_statv
is not guarded by_GNU_SOURCE
: https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/tree/include/xqm.h. Therefore my system check forstruct fs_quota_statv
works as is (without_GNU_SOURCE
).Quoting your commit message:
None of our quotactl tests use
fallocate()
.I see only musl defines
fallocate64
when_GNU_SOURCE
defined, but I don't see how this could be used here.