Commit a2349177 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

lib/socket: make zerotime definition a global constant


Signed-off-by: default avatarPhilippe Gerum <rpm@xenomai.org>
parent 5a76d99a
......@@ -19,11 +19,12 @@
#include <evl/net/socket.h>
#include "internal.h"
static const struct timespec zerotime;
ssize_t oob_recvmsg(int s, struct oob_msghdr *msghdr,
const struct timespec *timeout,
int flags)
{
struct timespec zerotime = { .tv_sec = 0, .tv_nsec = 0 };
struct user_oob_msghdr u_msghdr;
struct __evl_timespec kts;
long ret;
......@@ -57,7 +58,6 @@ ssize_t oob_sendmsg(int s, const struct oob_msghdr *msghdr,
const struct timespec *timeout,
int flags)
{
struct timespec zerotime = { .tv_sec = 0, .tv_nsec = 0 };
struct user_oob_msghdr u_msghdr;
struct __evl_timespec kts;
long ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment