Fossil SCM
Fix compiler warnings in backoffice.
Commit
c7dca0cd79f905590c583c458b595c2cb5748854e8899ec23018f463d8fc170d
Parent
71b9f354758a14d…
1 file changed
+2
-2
+2
-2
| --- src/backoffice.c | ||
| +++ src/backoffice.c | ||
| @@ -133,11 +133,11 @@ | ||
| 133 | 133 | /* |
| 134 | 134 | ** Log backoffice activity to a file named here. If not NULL, this |
| 135 | 135 | ** overrides the "backoffice-logfile" setting of the database. If NULL, |
| 136 | 136 | ** the "backoffice-logfile" setting is used instead. |
| 137 | 137 | */ |
| 138 | -static char *backofficeLogfile = 0; | |
| 138 | +static const char *backofficeLogfile = 0; | |
| 139 | 139 | |
| 140 | 140 | /* |
| 141 | 141 | ** Write backoffice log messages to this connection: |
| 142 | 142 | */ |
| 143 | 143 | static FILE *backofficeLog = 0; |
| @@ -582,11 +582,11 @@ | ||
| 582 | 582 | */ |
| 583 | 583 | void backoffice_work(void){ |
| 584 | 584 | /* Log the backoffice run for testing purposes. For production deployments |
| 585 | 585 | ** the "backoffice-logfile" property should be unset and the following code |
| 586 | 586 | ** should be a no-op. */ |
| 587 | - char *zLog = backofficeLogfile; | |
| 587 | + const char *zLog = backofficeLogfile; | |
| 588 | 588 | int nAlert = 0; |
| 589 | 589 | int nSmtp = 0; |
| 590 | 590 | #if !defined(_WIN32) |
| 591 | 591 | struct timeval sStart, sEnd; |
| 592 | 592 | #endif |
| 593 | 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 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 |