Silence the compiler
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Sun, 25 Apr 2021 16:58:35 +0000 (18:58 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 24 Jun 2021 19:46:59 +0000 (21:46 +0200)
(cherry picked from commit 33d5b8e8e4c2f23b4e834e3a095e3c9dd9f0686b)

src/src/log.c
src/src/transports/appendfile.c

index 90373adf0a074410a14284375d4ae0045fca266f..dff7d321190d03ce8430a063a9fa153f8ce6e4af 100644 (file)
@@ -706,7 +706,7 @@ set_file_path(BOOL *multiple)
 {
 uschar *s;
 int sep = ':';              /* Fixed separator - outside use */
-uschar *ss = *log_file_path ? log_file_path : LOG_FILE_PATH;
+const uschar *ss = *log_file_path ? log_file_path : US LOG_FILE_PATH;
 
 logging_mode = 0;
 while ((s = string_nextinlist(&ss, &sep, log_buffer, LOG_BUFFER_SIZE)))
@@ -1498,7 +1498,7 @@ unlink_log(lt_debug);
 }
 
 void
-open_logs(const char *m)
+open_logs(void)
 {
 set_file_path(NULL);
 open_log(&mainlogfd, lt_main, 0);
index da261879039b5b061137aaf3c89d12aacd7880db..5d957b62e0b833358abc6ec608a496d2df3a5b1c 100644 (file)
@@ -175,7 +175,7 @@ Returns:     OK, FAIL, or DEFER
 */
 
 void
-openlogs();
+open_logs(void);
 
 static int
 appendfile_transport_setup(transport_instance *tblock, address_item *addrlist,
@@ -192,7 +192,7 @@ uid = uid;
 gid = gid;
 
 /* we can't wait until we're not privileged anymore */
-open_logs("appendfile");
+open_logs();
 
 if (ob->expand_maildir_use_size_file)
        ob->maildir_use_size_file = expand_check_condition(ob->expand_maildir_use_size_file,