Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
bf11101c
Commit
bf11101c
authored
13 years ago
by
Rafaël Carré
Browse files
Options
Downloads
Patches
Plain Diff
RingBuffer::Put() : remove unused return value
parent
7ff25e6f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-common/src/audio/ringbuffer.cpp
+1
-5
1 addition, 5 deletions
sflphone-common/src/audio/ringbuffer.cpp
sflphone-common/src/audio/ringbuffer.h
+1
-2
1 addition, 2 deletions
sflphone-common/src/audio/ringbuffer.h
with
2 additions
and
7 deletions
sflphone-common/src/audio/ringbuffer.cpp
+
1
−
5
View file @
bf11101c
...
...
@@ -180,13 +180,12 @@ RingBuffer::getNbReadPointer()
//
// This one puts some data inside the ring buffer.
int
void
RingBuffer
::
Put
(
void
*
buffer
,
int
toCopy
)
{
int
len
=
putLen
();
if
(
toCopy
>
mBufferSize
-
len
)
toCopy
=
mBufferSize
-
len
;
int
copied
=
toCopy
;
unsigned
char
*
src
=
(
unsigned
char
*
)
buffer
;
...
...
@@ -204,9 +203,6 @@ RingBuffer::Put (void* buffer, int toCopy)
}
mEnd
=
pos
;
// How many items copied.
return
copied
;
}
//
...
...
This diff is collapsed.
Click to expand it.
sflphone-common/src/audio/ringbuffer.h
+
1
−
2
View file @
bf11101c
...
...
@@ -98,9 +98,8 @@ class RingBuffer
* Write data in the ring buffer
* @param buffer Data to copied
* @param toCopy Number of bytes to copy
* @return int Number of bytes copied
*/
int
Put
(
void
*
buffer
,
int
toCopy
);
void
Put
(
void
*
buffer
,
int
toCopy
);
/**
* To get how much space is available in the buffer to read in
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment