Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
f8f1263d
Commit
f8f1263d
authored
Sep 20, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrs-socket: trivial bits
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
15515e9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrs-socket.c
time-wrs/wrs-socket.c
+2
-2
No files found.
time-wrs/wrs-socket.c
View file @
f8f1263d
...
...
@@ -158,7 +158,7 @@ static void wrs_linearize_rx_timestamp(TimeInternal *ts,
}
static
int
wrs_recv_msg
(
struct
pp_instance
*
ppi
,
int
fd
,
void
*
pkt
,
int
_
len
,
static
int
wrs_recv_msg
(
struct
pp_instance
*
ppi
,
int
fd
,
void
*
pkt
,
int
len
,
TimeInternal
*
t
)
{
struct
wrs_socket
*
s
;
...
...
@@ -173,7 +173,6 @@ static int wrs_recv_msg(struct pp_instance *ppi, int fd, void *pkt, int _len,
struct
scm_timestamping
*
sts
=
NULL
;
s
=
(
struct
wrs_socket
*
)
NP
(
ppi
)
->
ch
[
PP_NP_GEN
].
arch_data
;
size_t
len
=
_len
+
sizeof
(
struct
ethhdr
);
memset
(
&
msg
,
0
,
sizeof
(
msg
));
msg
.
msg_iov
=
&
entry
;
...
...
@@ -449,6 +448,7 @@ static int wrs_net_exit(struct pp_instance *ppi)
unix_net_ops
.
exit
(
ppi
);
free
(
NP
(
ppi
)
->
ch
[
PP_NP_GEN
].
arch_data
);
NP
(
ppi
)
->
ch
[
PP_NP_GEN
].
arch_data
=
NULL
;
NP
(
ppi
)
->
ch
[
PP_NP_EVT
].
arch_data
=
NULL
;
return
0
;
}
...
...
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