diff --git a/src/gstorage.c b/src/gstorage.c index 821573a9..6acc4af8 100644 --- a/src/gstorage.c +++ b/src/gstorage.c @@ -1019,7 +1019,8 @@ set_browser_os (GLogItem *logitem) { logitem->browser = verify_browser (a1, browser_type); logitem->browser_type = xstrdup (browser_type); - if (!strncmp (logitem->browser_type, "Crawlers", 8) || !strncmp (logitem->browser_type, "Others", 6)) { + if (!strncmp (logitem->browser_type, "Crawlers", 8) || + !strncmp (logitem->browser_type, "Others", 6)) { logitem->os = xstrdup (logitem->browser); logitem->os_type = xstrdup (browser_type); } else { diff --git a/src/options.c b/src/options.c index a84795a4..ff13fc8b 100644 --- a/src/options.c +++ b/src/options.c @@ -780,22 +780,22 @@ parse_long_opt (const char *name, const char *oarg) { conf.restore = 1; /* TLS/SSL certificate */ - if (!strcmp("ssl-cert", name)) { + if (!strcmp ("ssl-cert", name)) { // Check if the SSL certificate file exists and is readable - if (access(oarg, F_OK) != 0) - FATAL("SSL certificate file does not exist"); - if (access(oarg, R_OK) != 0) - FATAL("SSL certificate file is not accessible"); + if (access (oarg, F_OK) != 0) + FATAL ("SSL certificate file does not exist"); + if (access (oarg, R_OK) != 0) + FATAL ("SSL certificate file is not accessible"); conf.sslcert = oarg; } /* TLS/SSL private key */ - if (!strcmp("ssl-key", name)) { + if (!strcmp ("ssl-key", name)) { // Check if the SSL private key file exists and is readable - if (access(oarg, F_OK) != 0) - FATAL("SSL key file does not exist"); - if (access(oarg, R_OK) != 0) - FATAL("SSL key file is not accessible"); + if (access (oarg, F_OK) != 0) + FATAL ("SSL key file does not exist"); + if (access (oarg, R_OK) != 0) + FATAL ("SSL key file is not accessible"); conf.sslkey = oarg; } @@ -975,11 +975,11 @@ parse_long_opt (const char *name, const char *oarg) { } /* specifies the path of the database file */ - if (!strcmp("db-path", name)) { + if (!strcmp ("db-path", name)) { struct stat st; // Check if the directory exists and is accessible - if (stat(oarg, &st) != 0 || !S_ISDIR(st.st_mode)) - FATAL("Database path does not exist or is not a directory"); + if (stat (oarg, &st) != 0 || !S_ISDIR (st.st_mode)) + FATAL ("Database path does not exist or is not a directory"); conf.db_path = oarg; } @@ -1206,6 +1206,6 @@ read_option_args (int argc, char **argv) { } // Ensure that both ssl-cert and ssl-key are either both set or both unset if ((conf.sslcert && !conf.sslkey) || (!conf.sslcert && conf.sslkey)) { - FATAL("Both --ssl-cert and --ssl-key must be set and accessible."); + FATAL ("Both --ssl-cert and --ssl-key must be set and accessible."); } }