Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
63e4132d
Commit
63e4132d
authored
Apr 27, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(src/externals/single-application/SingleApplication): add casts
parent
0fd79e86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
SingleApplication.cpp
...op/src/externals/single-application/SingleApplication.cpp
+3
-3
No files found.
linphone-desktop/src/externals/single-application/SingleApplication.cpp
View file @
63e4132d
...
...
@@ -211,7 +211,7 @@ void SingleApplicationPrivate::connectToPrimary (int msecs, char connectionType)
initMsg
.
append
(
connectionType
);
initMsg
.
append
(
reinterpret_cast
<
const
char
*>
(
&
instanceNumber
),
sizeof
(
quint32
));
initMsg
.
append
(
QByteArray
::
number
(
qChecksum
(
initMsg
.
constData
(),
initMsg
.
length
(
)),
256
));
initMsg
.
append
(
QByteArray
::
number
(
qChecksum
(
initMsg
.
constData
(),
static_cast
<
uint
>
(
initMsg
.
length
()
)),
256
));
socket
->
write
(
initMsg
);
socket
->
flush
();
...
...
@@ -296,12 +296,12 @@ void SingleApplicationPrivate::slotConnectionEstablished () {
initMsg
+=
tmp
;
// Verify the checksum of the initMsg
QByteArray
checksum
=
QByteArray
::
number
(
qChecksum
(
initMsg
.
constData
(),
initMsg
.
length
(
)),
qChecksum
(
initMsg
.
constData
(),
static_cast
<
uint
>
(
initMsg
.
length
()
)),
256
);
tmp
=
nextConnSocket
->
read
(
checksum
.
length
());
if
(
checksum
==
tmp
)
break
;
// Otherwise set to invalid connection (next line)
break
;
// Otherwise set to invalid connection (next line)
}
default:
connectionType
=
InvalidConnection
;
...
...
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