From: Olliver Schinagl Date: Sat, 10 Jun 2023 13:20:25 +0000 (+0200) Subject: config: Fix whitespace errors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f28e69a5f1f24da7a973a6ef1dec9f7beece2acc;p=thirdparty%2Ftvheadend.git config: Fix whitespace errors The internal print functions already add the newline for us, so adding one manually is not needed. Further more, a tab got snook in, where spaces where intended. This fixes commit dbf973307ae3 ("dvr_storage: Use XDG spec directories") which accidentally introduced this. Signed-off-by: Olliver Schinagl --- diff --git a/src/config.c b/src/config.c index 8ee750acf..ab8b458cc 100644 --- a/src/config.c +++ b/src/config.c @@ -1720,9 +1720,9 @@ static char *config_get_dir ( void ) char hts_home_link[PATH_MAX]; if ((readlink(hts_home, hts_home_link, sizeof(hts_home_link)) == -1) || - (stat(hts_home_link, &st) == -1)) { - tvherror(LS_CONFIG, ".hts/tvheadend is inaccessable: %s", strerror(errno)); - return NULL; + (stat(hts_home_link, &st) == -1)) { + tvherror(LS_CONFIG, ".hts/tvheadend is inaccessable: %s", strerror(errno)); + return NULL; } strncpy(hts_home, hts_home_link, sizeof(hts_home)); } @@ -1782,11 +1782,11 @@ config_boot config.confdir = strndup(path, PATH_MAX); if (config.confdir == NULL) { - tvherror(LS_START, "unable to determine tvheadend home\n"); + tvherror(LS_START, "unable to determine tvheadend home"); exit(EXIT_FAILURE); } - tvhinfo(LS_CONFIG, "Using configuration from '%s'\n", config.confdir); + tvhinfo(LS_CONFIG, "Using configuration from '%s'", config.confdir); /* Ensure directory exists */ if (stat(config.confdir, &st)) {