Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PTP noposix stack
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
PTP noposix stack
Commits
6d034eae
Commit
6d034eae
authored
Feb 14, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ptpd_netif: trivial fixes for unlikely errors
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
25f173e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ptpd_netif.c
libptpnetif/ptpd_netif.c
+3
-1
No files found.
libptpnetif/ptpd_netif.c
View file @
6d034eae
...
...
@@ -271,6 +271,7 @@ wr_socket_t *ptpd_netif_create_socket(int sock_type, int flags,
}
s
=
calloc
(
sizeof
(
struct
my_socket
),
1
);
if
(
!
s
)
return
NULL
;
s
->
if_index
=
f
.
ifr_ifindex
;
...
...
@@ -303,6 +304,7 @@ int ptpd_netif_close_socket(wr_socket_t *sock)
return
0
;
close
(
s
->
fd
);
free
(
s
);
return
0
;
}
...
...
@@ -755,4 +757,4 @@ int ptpd_netif_enable_phase_tracking(const char *if_name)
int
ret
=
halexp_lock_cmd
(
if_name
,
HEXP_LOCK_CMD_ENABLE_TRACKING
,
0
);
return
(
ret
<
0
?
PTPD_NETIF_ERROR
:
PTPD_NETIF_OK
);
}
\ No newline at end of file
}
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