]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
config: Fix whitespace errors
authorOlliver Schinagl <oliver@schinagl.nl>
Sat, 10 Jun 2023 13:20:25 +0000 (15:20 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Wed, 21 Jun 2023 09:17:24 +0000 (11:17 +0200)
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 <oliver@schinagl.nl>
src/config.c

index 8ee750acfa35e71c9ff696e065018ebd8e130b01..ab8b458cc7ff2391a86a3c253d3fdaa3ff83f5a1 100644 (file)
@@ -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)) {