mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
net: put_cmsg_compat + SO_TIMESTAMP[NS]: use same name for value as caller
In __sock_recv_timestamp() the additional SCM_TIMESTAMP[NS] is used. This has the same value as SO_TIMESTAMP[NS], so this is a purely cosmetic change. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8f65b5354b
commit
d35aac10eb
1 changed files with 2 additions and 2 deletions
|
@ -226,14 +226,14 @@ int put_cmsg_compat(struct msghdr *kmsg, int level, int type, int len, void *dat
|
|||
return 0; /* XXX: return error? check spec. */
|
||||
}
|
||||
|
||||
if (level == SOL_SOCKET && type == SO_TIMESTAMP) {
|
||||
if (level == SOL_SOCKET && type == SCM_TIMESTAMP) {
|
||||
struct timeval *tv = (struct timeval *)data;
|
||||
ctv.tv_sec = tv->tv_sec;
|
||||
ctv.tv_usec = tv->tv_usec;
|
||||
data = &ctv;
|
||||
len = sizeof(ctv);
|
||||
}
|
||||
if (level == SOL_SOCKET && type == SO_TIMESTAMPNS) {
|
||||
if (level == SOL_SOCKET && type == SCM_TIMESTAMPNS) {
|
||||
struct timespec *ts = (struct timespec *)data;
|
||||
cts.tv_sec = ts->tv_sec;
|
||||
cts.tv_nsec = ts->tv_nsec;
|
||||
|
|
Loading…
Reference in a new issue