Fossil SCM

Fix compiler warnings in backoffice.

drh 2020-07-01 20:18 trunk
Commit c7dca0cd79f905590c583c458b595c2cb5748854e8899ec23018f463d8fc170d
1 file changed +2 -2
--- src/backoffice.c
+++ src/backoffice.c
@@ -133,11 +133,11 @@
133133
/*
134134
** Log backoffice activity to a file named here. If not NULL, this
135135
** overrides the "backoffice-logfile" setting of the database. If NULL,
136136
** the "backoffice-logfile" setting is used instead.
137137
*/
138
-static char *backofficeLogfile = 0;
138
+static const char *backofficeLogfile = 0;
139139
140140
/*
141141
** Write backoffice log messages to this connection:
142142
*/
143143
static FILE *backofficeLog = 0;
@@ -582,11 +582,11 @@
582582
*/
583583
void backoffice_work(void){
584584
/* Log the backoffice run for testing purposes. For production deployments
585585
** the "backoffice-logfile" property should be unset and the following code
586586
** should be a no-op. */
587
- char *zLog = backofficeLogfile;
587
+ const char *zLog = backofficeLogfile;
588588
int nAlert = 0;
589589
int nSmtp = 0;
590590
#if !defined(_WIN32)
591591
struct timeval sStart, sEnd;
592592
#endif
593593
--- src/backoffice.c
+++ src/backoffice.c
@@ -133,11 +133,11 @@
133 /*
134 ** Log backoffice activity to a file named here. If not NULL, this
135 ** overrides the "backoffice-logfile" setting of the database. If NULL,
136 ** the "backoffice-logfile" setting is used instead.
137 */
138 static char *backofficeLogfile = 0;
139
140 /*
141 ** Write backoffice log messages to this connection:
142 */
143 static FILE *backofficeLog = 0;
@@ -582,11 +582,11 @@
582 */
583 void backoffice_work(void){
584 /* Log the backoffice run for testing purposes. For production deployments
585 ** the "backoffice-logfile" property should be unset and the following code
586 ** should be a no-op. */
587 char *zLog = backofficeLogfile;
588 int nAlert = 0;
589 int nSmtp = 0;
590 #if !defined(_WIN32)
591 struct timeval sStart, sEnd;
592 #endif
593
--- src/backoffice.c
+++ src/backoffice.c
@@ -133,11 +133,11 @@
133 /*
134 ** Log backoffice activity to a file named here. If not NULL, this
135 ** overrides the "backoffice-logfile" setting of the database. If NULL,
136 ** the "backoffice-logfile" setting is used instead.
137 */
138 static const char *backofficeLogfile = 0;
139
140 /*
141 ** Write backoffice log messages to this connection:
142 */
143 static FILE *backofficeLog = 0;
@@ -582,11 +582,11 @@
582 */
583 void backoffice_work(void){
584 /* Log the backoffice run for testing purposes. For production deployments
585 ** the "backoffice-logfile" property should be unset and the following code
586 ** should be a no-op. */
587 const char *zLog = backofficeLogfile;
588 int nAlert = 0;
589 int nSmtp = 0;
590 #if !defined(_WIN32)
591 struct timeval sStart, sEnd;
592 #endif
593

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button