Add int to stop compiler warning

This commit is contained in:
Mike Brady
2014-08-24 16:08:32 +01:00
parent 3b205e6546
commit 2e27c885a9
+2 -1
View File
@@ -28,6 +28,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <memory.h>
#include <stdlib.h>
#include "common.h"
#include "audio.h"
@@ -44,7 +45,7 @@ static void start(int sample_rate) {
}
static void play(short buf[], int samples) {
write(fd, buf, samples*4);
int ignore = write(fd, buf, samples*4);
}
static void stop(void) {