changeset 686:256002aa06cc

Changed to conform to new th_stat_path() API.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 09 Jul 2018 07:28:45 +0300
parents fc79f5f4b4d6
children e6d60eacf24d
files main.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Mon Jul 09 06:11:30 2018 +0300
+++ b/main.c	Mon Jul 09 07:28:45 2018 +0300
@@ -2087,17 +2087,17 @@
 
     if (optLogEnable)
     {
-        int flags;
-        if (th_stat_path(optLogPath, &flags))
+        th_stat_data sdata;
+        if (th_stat_path(optLogPath, &sdata))
         {
-            if ((flags & TH_IS_DIR) == 0)
+            if ((sdata.flags & TH_IS_DIR) == 0)
             {
                 THERR("The log file path '%s' is not a directory.\n",
                     optLogPath);
                 goto err_exit;
             }
             else
-            if ((flags & TH_IS_WRITABLE) == 0)
+            if ((sdata.flags & TH_IS_WRITABLE) == 0)
             {
 #ifdef TH_PLAT_WINDOWS
                 if (!th_mkdir_path(optLogPath, 0))