Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Linux-Kernel
libevl
Commits
a2349177
Commit
a2349177
authored
Sep 11, 2021
by
Philippe Gerum
Browse files
lib/socket: make zerotime definition a global constant
Signed-off-by:
Philippe Gerum
<
rpm@xenomai.org
>
parent
5a76d99a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/socket.c
View file @
a2349177
...
@@ -19,11 +19,12 @@
...
@@ -19,11 +19,12 @@
#include <evl/net/socket.h>
#include <evl/net/socket.h>
#include "internal.h"
#include "internal.h"
static
const
struct
timespec
zerotime
;
ssize_t
oob_recvmsg
(
int
s
,
struct
oob_msghdr
*
msghdr
,
ssize_t
oob_recvmsg
(
int
s
,
struct
oob_msghdr
*
msghdr
,
const
struct
timespec
*
timeout
,
const
struct
timespec
*
timeout
,
int
flags
)
int
flags
)
{
{
struct
timespec
zerotime
=
{
.
tv_sec
=
0
,
.
tv_nsec
=
0
};
struct
user_oob_msghdr
u_msghdr
;
struct
user_oob_msghdr
u_msghdr
;
struct
__evl_timespec
kts
;
struct
__evl_timespec
kts
;
long
ret
;
long
ret
;
...
@@ -57,7 +58,6 @@ ssize_t oob_sendmsg(int s, const struct oob_msghdr *msghdr,
...
@@ -57,7 +58,6 @@ ssize_t oob_sendmsg(int s, const struct oob_msghdr *msghdr,
const
struct
timespec
*
timeout
,
const
struct
timespec
*
timeout
,
int
flags
)
int
flags
)
{
{
struct
timespec
zerotime
=
{
.
tv_sec
=
0
,
.
tv_nsec
=
0
};
struct
user_oob_msghdr
u_msghdr
;
struct
user_oob_msghdr
u_msghdr
;
struct
__evl_timespec
kts
;
struct
__evl_timespec
kts
;
long
ret
;
long
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment