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
9e2693d8
Commit
9e2693d8
authored
Aug 02, 2013
by
Aurelio Colosimo
Committed by
Alessandro Rubini
Sep 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time-wrs/wrs-socket.c: fix wrs_net_init exit on error
Signed-off-by:
Aurelio Colosimo
<
aurelio@aureliocolosimo.it
>
parent
b87badd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
wrs-socket.c
time-wrs/wrs-socket.c
+9
-2
No files found.
time-wrs/wrs-socket.c
View file @
9e2693d8
...
...
@@ -407,17 +407,24 @@ static int wrs_net_init(struct pp_instance *ppi)
if
(
ioctl
(
fd
,
SIOCSHWTSTAMP
,
&
ifr
)
<
0
)
{
perror
(
"SIOCSHWTSTAMP"
);
return
-
1
;
goto
error
;
}
if
(
setsockopt
(
fd
,
SOL_SOCKET
,
SO_TIMESTAMPING
,
&
so_timestamping_flags
,
sizeof
(
int
))
<
0
)
{
pp_error
(
"setsockopt(SO_TIMESTAMPING)"
);
return
-
1
;
goto
error
;
}
}
return
0
;
error:
free
(
s
);
NP
(
ppi
)
->
ch
[
PP_NP_GEN
].
arch_data
=
NULL
;
NP
(
ppi
)
->
ch
[
PP_NP_EVT
].
arch_data
=
NULL
;
return
-
1
;
}
static
int
wrs_net_exit
(
struct
pp_instance
*
ppi
)
...
...
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