sad

simple audio daemon
git clone git://git.2f30.org/sad
Log | Files | Refs | LICENSE

commit b9e22d58aa5bf28af8d3c39e77bd274446e05323
parent 0756a9449a2cee9351677bae69f938ec7383f4cf
Author: sin <sin@2f30.org>
Date:   Sat, 27 Dec 2014 18:15:40 +0000

Fix some warnings

Diffstat:
MMakefile | 2+-
Mcmd.c | 4----
Mfifo.c | 2++
Mmp3.c | 2+-
Mplaylist.c | 2++
5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,7 +3,7 @@ VERSION = 0.0 PREFIX = /usr/local MANPREFIX = $(PREFIX)/man -CFLAGS = -I/usr/local/include -g +CFLAGS = -I/usr/local/include -g -Wall LDFLAGS = -L /usr/local/lib LDLIBS = -lsndfile -lmpg123 -lsndio -lvorbisfile diff --git a/cmd.c b/cmd.c @@ -188,8 +188,6 @@ cmdadd(int fd, char *arg) static void cmdclear(int fd, char *arg) { - Song *s; - if (arg[0]) { dprintf(fd, "ERR unexpected argument\n"); return; @@ -293,8 +291,6 @@ docmd(int clifd) size_t cmdlen; char *new_buf; int i, c; - int argc; - char *argv[2]; /* If no buffer, set it up. */ if (!buf) { diff --git a/fifo.c b/fifo.c @@ -1,4 +1,6 @@ #include <sys/select.h> +#include <sys/stat.h> +#include <sys/types.h> #include <err.h> #include <fcntl.h> diff --git a/mp3.c b/mp3.c @@ -30,7 +30,7 @@ mp3open(const char *name) { int r; long rate; - int channels, encoding, bits; + int channels, encoding; r = mpg123_open(hdl, name); if (r != MPG123_OK) { diff --git a/playlist.c b/playlist.c @@ -174,6 +174,7 @@ playnextsong(void) s = getnextsong(); s->state = PREPARE; playlist.cursong = s; + return s; } Song * @@ -186,6 +187,7 @@ playprevsong(void) s = getprevsong(); s->state = PREPARE; playlist.cursong = s; + return s; } void