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
e141bec0
Commit
e141bec0
authored
Mar 04, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: posix-socket: remove uneeded init
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
f77d4f36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
posix-socket.c
arch-gnu-linux/posix-socket.c
+2
-2
No files found.
arch-gnu-linux/posix-socket.c
View file @
e141bec0
...
...
@@ -94,7 +94,7 @@ static int posix_recv_msg(struct pp_instance *ppi, int fd, void *pkt, int len,
static
int
posix_net_recv
(
struct
pp_instance
*
ppi
,
void
*
pkt
,
int
len
,
TimeInternal
*
t
)
{
struct
pp_channel
*
ch1
=
NULL
,
*
ch2
=
NULL
;
struct
pp_channel
*
ch1
,
*
ch2
;
if
(
OPTS
(
ppi
)
->
ethernet_mode
)
{
int
fd
=
NP
(
ppi
)
->
ch
[
PP_NP_GEN
].
fd
;
...
...
@@ -102,7 +102,7 @@ static int posix_net_recv(struct pp_instance *ppi, void *pkt, int len,
return
posix_recv_msg
(
ppi
,
fd
,
pkt
,
len
,
t
);
}
/* else: UDP */
/* else: UDP
, we can return one frame only, so swap priority
*/
if
(
POSIX_ARCH
(
ppi
)
->
rcv_switch
)
{
ch1
=
&
(
NP
(
ppi
)
->
ch
[
PP_NP_GEN
]);
ch2
=
&
(
NP
(
ppi
)
->
ch
[
PP_NP_EVT
]);
...
...
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