projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maint: change "a a" to "a"
[gnulib.git]
/
lib
/
setsockopt.c
diff --git
a/lib/setsockopt.c
b/lib/setsockopt.c
index
96a00cc
..
a31a10e
100644
(file)
--- a/
lib/setsockopt.c
+++ b/
lib/setsockopt.c
@@
-1,6
+1,6
@@
/* setsockopt.c --- wrappers for Windows setsockopt function
/* setsockopt.c --- wrappers for Windows setsockopt function
- Copyright (C) 2008-20
09
Free Software Foundation, Inc.
+ Copyright (C) 2008-20
11
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-41,7
+41,8
@@
rpl_setsockopt (int fd, int level, int optname, const void *optval, socklen_t op
{
const struct timeval *tv = optval;
int milliseconds = tv->tv_sec * 1000 + tv->tv_usec / 1000;
{
const struct timeval *tv = optval;
int milliseconds = tv->tv_sec * 1000 + tv->tv_usec / 1000;
- r = setsockopt (sock, level, optname, &milliseconds, sizeof (int));
+ optval = &milliseconds;
+ r = setsockopt (sock, level, optname, optval, sizeof (int));
}
else
{
}
else
{