Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
e1c2a990
Commit
e1c2a990
authored
Feb 15, 2006
by
Jérome Decoodt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stupid me... don't do twice hton*
parent
1d62f562
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/misc/growl.c
modules/misc/growl.c
+3
-3
No files found.
modules/misc/growl.c
View file @
e1c2a990
...
...
@@ -179,7 +179,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
#define insertstrlen( psz ) \
{ \
uint16_t i_size =
htons(strlen( psz )
); \
uint16_t i_size =
strlen( psz
); \
psz_encoded[i++] = (i_size>>8)&0xFF; \
psz_encoded[i++] = i_size&0xFF; \
}
...
...
@@ -235,7 +235,7 @@ static int NotifyToGrowl( vlc_object_t *p_this, char *psz_type,
memset
(
psz_encoded
,
0
,
sizeof
(
psz_encoded
)
);
psz_encoded
[
i
++
]
=
GROWL_PROTOCOL_VERSION
;
psz_encoded
[
i
++
]
=
GROWL_TYPE_NOTIFICATION
;
flags
=
htons
(
0
)
;
flags
=
0
;
psz_encoded
[
i
++
]
=
(
flags
>>
8
)
&
0xFF
;
psz_encoded
[
i
++
]
=
flags
&
0xFF
;
insertstrlen
(
psz_type
);
...
...
@@ -274,7 +274,7 @@ static int CheckAndSend( vlc_object_t *p_this, uint8_t* p_data, int i_offset )
for
(
i
=
0
;
i
<
4
;
i
++
)
{
md5
.
p_digest
[
i
]
=
htonl
(
md5
.
p_digest
[
i
])
;
md5
.
p_digest
[
i
]
=
md5
.
p_digest
[
i
]
;
p_data
[
i_offset
++
]
=
md5
.
p_digest
[
i
]
&
0xFF
;
p_data
[
i_offset
++
]
=
(
md5
.
p_digest
[
i
]
>>
8
)
&
0xFF
;
p_data
[
i_offset
++
]
=
(
md5
.
p_digest
[
i
]
>>
16
)
&
0xFF
;
...
...
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