Skip to content

Commit

Permalink
clang-format only
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Nov 12, 2017
1 parent 827fa5a commit 532c77e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mdns_avahi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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.");
}
}

Expand Down
2 changes: 1 addition & 1 deletion mdns_external.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 532c77e

Please sign in to comment.