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
61b2062e
Commit
61b2062e
authored
Jul 12, 2012
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: proto-ext-whiterabbit/wr-msg.c cleanup
parent
aea052e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wr-msg.c
proto-ext-whiterabbit/wr-msg.c
+3
-3
No files found.
proto-ext-whiterabbit/wr-msg.c
View file @
61b2062e
...
...
@@ -110,8 +110,10 @@ void msg_unpack_announce_wr_tlv(void *buf, MsgAnnounce *ann)
int
msg_pack_wrsig
(
struct
pp_instance
*
ppi
,
Enumeration16
wr_msg_id
)
{
void
*
buf
;
UInteger16
len
=
0
;
if
((
DSPOR
(
ppi
)
->
wrMode
==
NON_WR
)
||
(
wr_msg_id
==
ANN_SUFIX
))
{
PP_PRINTF
(
"BUG: Trying to send invalid wr_msg mode=%
d id=%d
"
,
PP_PRINTF
(
"BUG: Trying to send invalid wr_msg mode=%
x id=%x
"
,
DSPOR
(
ppi
)
->
wrMode
,
wr_msg_id
);
return
0
;
}
...
...
@@ -140,7 +142,6 @@ int msg_pack_wrsig(struct pp_instance *ppi, Enumeration16 wr_msg_id)
/* wrMessageId */
*
(
UInteger16
*
)(
buf
+
54
)
=
htons
(
wr_msg_id
);
UInteger16
len
=
0
;
switch
(
wr_msg_id
)
{
case
CALIBRATE
:
if
(
DSPOR
(
ppi
)
->
calibrated
)
{
...
...
@@ -187,7 +188,6 @@ void msg_unpack_wrsig(struct pp_instance *ppi, void *buf,
UInteger32
tlv_organizationID
;
UInteger16
tlv_magicNumber
;
UInteger16
tlv_versionNumber
;
UInteger16
len
=
(
UInteger16
)
get_be16
(
buf
+
2
);
pp_memcpy
(
wrsig_msg
->
targetPortIdentity
.
clockIdentity
,(
buf
+
34
),
PP_CLOCK_IDENTITY_LENGTH
);
...
...
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