summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/buffering.c16
-rw-r--r--apps/voice_thread.c2
2 files changed, 9 insertions, 9 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 938cc95620..e642142b58 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -874,8 +874,8 @@ management functions for all the actual handle management work.
queued to be opened, otherwise the handle for the file in the buffer
*/
int bufopen(const char *file, size_t offset, enum data_type type)
-{
- size_t adjusted_offset = offset;
+{
+ size_t adjusted_offset = offset;
int fd = open(file, O_RDONLY);
if (fd < 0)
@@ -1098,7 +1098,7 @@ static struct memory_handle *prep_bufdata(int handle_id, size_t *size,
*/
ssize_t bufread(int handle_id, size_t size, void *dest)
{
- const struct memory_handle *h;
+ const struct memory_handle *h;
size_t adjusted_size = size;
h = prep_bufdata(handle_id, &adjusted_size, false);
@@ -1132,7 +1132,7 @@ ssize_t bufread(int handle_id, size_t size, void *dest)
ssize_t bufgetdata(int handle_id, size_t size, void **data)
{
const struct memory_handle *h;
- size_t adjusted_size = size;
+ size_t adjusted_size = size;
h = prep_bufdata(handle_id, &adjusted_size, true);
if (!h)
@@ -1186,7 +1186,7 @@ ssize_t bufgettail(int handle_id, size_t size, void **data)
ssize_t bufcuttail(int handle_id, size_t size)
{
- struct memory_handle *h;
+ struct memory_handle *h;
size_t adjusted_size = size;
h = find_handle(handle_id);
@@ -1315,7 +1315,7 @@ static void call_buffering_callbacks(enum callback_event ev, int value)
}
}
-static void shrink_buffer_inner(struct memory_handle *h)
+static void shrink_buffer_inner(struct memory_handle *h)
{
if (h == NULL)
return;
@@ -1325,7 +1325,7 @@ static void shrink_buffer_inner(struct memory_handle *h)
shrink_handle(h);
}
-static void shrink_buffer(void)
+static void shrink_buffer(void)
{
logf("shrink_buffer()");
shrink_buffer_inner(first_handle);
@@ -1450,7 +1450,7 @@ void buffering_thread(void)
}
}
-void buffering_init(void)
+void buffering_init(void)
{
mutex_init(&llist_mutex);
#ifdef HAVE_PRIORITY_SCHEDULING
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 98b9cafc83..0da441191f 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -22,7 +22,7 @@
#include "voice_thread.h"
#include "talk.h"
#include "dsp.h"
-#include "audio.h"
+#include "audio.h"
#include "playback.h"
#include "pcmbuf.h"
#include "codecs/libspeex/speex/speex.h"