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
29081df1
Commit
29081df1
authored
Aug 02, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: wr-msg.c: fix indentation
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
3a078045
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
wr-msg.c
proto-ext-whiterabbit/wr-msg.c
+16
-16
No files found.
proto-ext-whiterabbit/wr-msg.c
View file @
29081df1
...
@@ -18,38 +18,38 @@
...
@@ -18,38 +18,38 @@
/* put 16 bit word in big endianess (from little endianess) */
/* put 16 bit word in big endianess (from little endianess) */
static
inline
void
put_be16
(
void
*
ptr
,
UInteger16
x
)
static
inline
void
put_be16
(
void
*
ptr
,
UInteger16
x
)
{
{
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
>>
8
)
&
0xff
;
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
>>
8
)
&
0xff
;
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
)
&
0xff
;
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
)
&
0xff
;
}
}
/* put 32 bit word in big endianess (from little endianess) */
/* put 32 bit word in big endianess (from little endianess) */
static
inline
void
put_be32
(
void
*
ptr
,
UInteger32
x
)
static
inline
void
put_be32
(
void
*
ptr
,
UInteger32
x
)
{
{
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
>>
24
)
&
0xff
;
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
>>
24
)
&
0xff
;
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
>>
16
)
&
0xff
;
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
>>
16
)
&
0xff
;
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
>>
8
)
&
0xff
;
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
>>
8
)
&
0xff
;
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
)
&
0xff
;
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
)
&
0xff
;
}
}
/* gets 32 bit word from big endianness (to little endianness) */
/* gets 32 bit word from big endianness (to little endianness) */
static
inline
UInteger32
get_be32
(
void
*
ptr
)
static
inline
UInteger32
get_be32
(
void
*
ptr
)
{
{
UInteger32
res
=
0x0
;
UInteger32
res
=
0x0
;
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
24
)
&
0xFF000000
);
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
24
)
&
0xFF000000
);
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
16
)
&
0x00FF0000
);
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
16
)
&
0x00FF0000
);
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
8
)
&
0x0000FF00
);
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
8
)
&
0x0000FF00
);
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
0
)
&
0x000000FF
);
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
0
)
&
0x000000FF
);
return
res
;
return
res
;
}
}
/* gets 16 bit word from big endianess (to little endianess) */
/* gets 16 bit word from big endianess (to little endianess) */
static
inline
UInteger16
get_be16
(
void
*
ptr
)
static
inline
UInteger16
get_be16
(
void
*
ptr
)
{
{
UInteger16
res
=
0x0
;
UInteger16
res
=
0x0
;
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
8
)
&
0xFF00
);
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
8
)
&
0xFF00
);
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
0
)
&
0x000FF
);
res
=
res
|
((
*
(
unsigned
char
*
)(
ptr
++
)
<<
0
)
&
0x000FF
);
return
res
;
return
res
;
}
}
/* Pack White rabbit message in the suffix of PTP announce message */
/* Pack White rabbit message in the suffix of PTP announce message */
...
...
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