From 532c77eb232815244060aee19b0356026aa334f7 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Sun, 12 Nov 2017 14:25:09 +0100 Subject: [PATCH] clang-format only --- mdns_avahi.c | 8 ++++---- mdns_external.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mdns_avahi.c b/mdns_avahi.c index 6d96d9d0..634914a6 100644 --- a/mdns_avahi.c +++ b/mdns_avahi.c @@ -86,12 +86,12 @@ static void resolve_callback(AvahiServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIn if (*p != port) { debug(1, "Client's DACP port: %u.", port); *p = port; - #ifdef CONFIG_METADATA +#ifdef CONFIG_METADATA char portstring[20]; - memset(portstring,0,sizeof(portstring)); + memset(portstring, 0, sizeof(portstring)); sprintf(portstring, "%u", port); send_ssnc_metadata('dapo', strdup(portstring), strlen(portstring), 0); - #endif +#endif } } } else { @@ -449,7 +449,7 @@ void avahi_dacp_dont_monitor(void **private_pointer) { free((char *)(*pdbs)); *pdbs = NULL; } else { - debug(1,"DHCP Monitor is not running."); + debug(1, "DHCP Monitor is not running."); } } diff --git a/mdns_external.c b/mdns_external.c index c4aecd11..5d24712d 100644 --- a/mdns_external.c +++ b/mdns_external.c @@ -64,7 +64,7 @@ static int fork_execvp(const char *file, char *const argv[]) { // If we reach this point then execve has failed. // Write erno's value into the pipe and exit. int ignore = write(execpipe[1], &errno, sizeof(errno)); - debug(1,"execve has failed."); + debug(1, "execve has failed."); _exit(-1); return 0; // Just to make the compiler happy. } else { // Parent