Fossil SCM

Fix a harmless compiler warning.

drh 2019-08-04 20:26 trunk
Commit 95a6a658d40f4d4d7d77a37a68578ec5961ec298a332f3a901cd1e9267376c70
1 file changed +1 -1
+1 -1
--- src/main.c
+++ src/main.c
@@ -148,11 +148,11 @@
148148
unsigned iRepoDataVers; /* Initial data version for repository database */
149149
char *zRepositoryOption; /* Most recent cached repository option value */
150150
char *zRepositoryName; /* Name of the repository database file */
151151
char *zLocalDbName; /* Name of the local database file */
152152
char *zOpenRevision; /* Check-in version to use during database open */
153
- char *zCmdName; /* Name of the Fossil command currently running */
153
+ const char *zCmdName; /* Name of the Fossil command currently running */
154154
int localOpen; /* True if the local database is open */
155155
char *zLocalRoot; /* The directory holding the local database */
156156
int minPrefix; /* Number of digits needed for a distinct UUID */
157157
int eHashPolicy; /* Current hash policy. One of HPOLICY_* */
158158
int fSqlTrace; /* True if --sqltrace flag is present */
159159
--- src/main.c
+++ src/main.c
@@ -148,11 +148,11 @@
148 unsigned iRepoDataVers; /* Initial data version for repository database */
149 char *zRepositoryOption; /* Most recent cached repository option value */
150 char *zRepositoryName; /* Name of the repository database file */
151 char *zLocalDbName; /* Name of the local database file */
152 char *zOpenRevision; /* Check-in version to use during database open */
153 char *zCmdName; /* Name of the Fossil command currently running */
154 int localOpen; /* True if the local database is open */
155 char *zLocalRoot; /* The directory holding the local database */
156 int minPrefix; /* Number of digits needed for a distinct UUID */
157 int eHashPolicy; /* Current hash policy. One of HPOLICY_* */
158 int fSqlTrace; /* True if --sqltrace flag is present */
159
--- src/main.c
+++ src/main.c
@@ -148,11 +148,11 @@
148 unsigned iRepoDataVers; /* Initial data version for repository database */
149 char *zRepositoryOption; /* Most recent cached repository option value */
150 char *zRepositoryName; /* Name of the repository database file */
151 char *zLocalDbName; /* Name of the local database file */
152 char *zOpenRevision; /* Check-in version to use during database open */
153 const char *zCmdName; /* Name of the Fossil command currently running */
154 int localOpen; /* True if the local database is open */
155 char *zLocalRoot; /* The directory holding the local database */
156 int minPrefix; /* Number of digits needed for a distinct UUID */
157 int eHashPolicy; /* Current hash policy. One of HPOLICY_* */
158 int fSqlTrace; /* True if --sqltrace flag is present */
159

Keyboard Shortcuts

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