diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-12 12:19:45 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-12 12:19:45 +0100 |
commit | 035302a63134f95eef7c04430b0aae07f5634b94 (patch) | |
tree | 167a0db295b8e29430375b77407563ccc3937d6d /pfinet | |
parent | 270e06c906fea5609a5205c943cfa7b8770ba685 (diff) | |
download | hurd-035302a63134f95eef7c04430b0aae07f5634b94.tar.gz hurd-035302a63134f95eef7c04430b0aae07f5634b94.tar.bz2 hurd-035302a63134f95eef7c04430b0aae07f5634b94.zip |
Fix warning
* pfinet/socket-ops.c (S_socket_setopt): Cast data into char* before
passing it to Linux' setsockopt which erroneously takes a char*.
Diffstat (limited to 'pfinet')
-rw-r--r-- | pfinet/socket-ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/socket-ops.c b/pfinet/socket-ops.c index 985d6b02..db1b92cd 100644 --- a/pfinet/socket-ops.c +++ b/pfinet/socket-ops.c @@ -419,7 +419,7 @@ S_socket_setopt (struct sock_user *user, err = - (level == SOL_SOCKET ? sock_setsockopt : *user->sock->ops->setsockopt) - (user->sock, level, option, data, datalen); + (user->sock, level, option, (char*) data, datalen); pthread_mutex_unlock (&global_lock); |