Cleaned up a few warnings detected by clang

This commit is contained in:
Mke Brady
2016-04-05 16:48:29 +01:00
parent 0a7d9b383b
commit dace5b0511
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ static void help(void) {
" *) default option\n");
}
int open_mixer() {
void open_mixer() {
if (hardware_mixer) {
debug(2, "Open Mixer");
int ret = 0;
@@ -463,7 +463,7 @@ int open_alsa_device(void) {
debug(1,"The alsa buffer is to small (%lu bytes) to accommodate the desired backend buffer length (%ld) you have chosen.",actual_buffer_length,config.audio_backend_buffer_desired_length);
}
if ((alsa_characteristics_already_listed==0)) {
if (alsa_characteristics_already_listed==0) {
alsa_characteristics_already_listed=1;
int rc;
+3 -2
View File
@@ -38,6 +38,7 @@
#include <avahi-common/error.h>
#include <avahi-client/lookup.h>
#include <avahi-common/alternative.h>
static AvahiServiceBrowser *sb = NULL;
static AvahiClient *client = NULL;
@@ -171,8 +172,8 @@ static void egroup_callback(AvahiEntryGroup *g, AvahiEntryGroupState state,
/* A service name collision with a remote service
* happened. Let's pick a new name */
n = avahi_alternative_service_name( name );
avahi_free( name );
n = avahi_alternative_service_name(name);
avahi_free(name);
name = n;
debug(2,"avahi: service name collision, renaming service to '%s'", name );