Fossil SCM

Fix a harmless compiler warning.

drh 2018-07-18 01:41 trunk
Commit 2332efb74a214db22d59845dc519b1261816ce750a9ab34b7a3b28981640cb4a
1 file changed +1 -1
+1 -1
--- src/file.c
+++ src/file.c
@@ -1496,11 +1496,11 @@
14961496
** Generate temporary filenames derived from BASENAME. Use the --time
14971497
** option to generate temp names based on the time of day.
14981498
*/
14991499
void file_test_tempname(void){
15001500
int i;
1501
- char *zSuffix = find_option("time",0,1);
1501
+ const char *zSuffix = find_option("time",0,1);
15021502
Blob x = BLOB_INITIALIZER;
15031503
char *z;
15041504
verify_all_options();
15051505
for(i=2; i<g.argc; i++){
15061506
if( zSuffix ){
15071507
--- src/file.c
+++ src/file.c
@@ -1496,11 +1496,11 @@
1496 ** Generate temporary filenames derived from BASENAME. Use the --time
1497 ** option to generate temp names based on the time of day.
1498 */
1499 void file_test_tempname(void){
1500 int i;
1501 char *zSuffix = find_option("time",0,1);
1502 Blob x = BLOB_INITIALIZER;
1503 char *z;
1504 verify_all_options();
1505 for(i=2; i<g.argc; i++){
1506 if( zSuffix ){
1507
--- src/file.c
+++ src/file.c
@@ -1496,11 +1496,11 @@
1496 ** Generate temporary filenames derived from BASENAME. Use the --time
1497 ** option to generate temp names based on the time of day.
1498 */
1499 void file_test_tempname(void){
1500 int i;
1501 const char *zSuffix = find_option("time",0,1);
1502 Blob x = BLOB_INITIALIZER;
1503 char *z;
1504 verify_all_options();
1505 for(i=2; i<g.argc; i++){
1506 if( zSuffix ){
1507

Keyboard Shortcuts

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