Fossil SCM
Fix a C99-style variable declaration.
Commit
a3641b544118fcf647aa334ccfd48fd769a77f6c
Parent
1c37a90508b89cf…
1 file changed
+2
-1
+2
-1
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -420,15 +420,16 @@ | ||
| 420 | 420 | /* |
| 421 | 421 | ** Set the mtime for a file. |
| 422 | 422 | */ |
| 423 | 423 | void file_set_mtime(const char *zFilename, i64 newMTime){ |
| 424 | 424 | #if !defined(_WIN32) |
| 425 | + char *zMbcs; | |
| 425 | 426 | struct timeval tv[2]; |
| 426 | 427 | memset(tv, 0, sizeof(tv[0])*2); |
| 427 | 428 | tv[0].tv_sec = newMTime; |
| 428 | 429 | tv[1].tv_sec = newMTime; |
| 429 | - char *zMbcs = fossil_utf8_to_filename(zFilename); | |
| 430 | + zMbcs = fossil_utf8_to_filename(zFilename); | |
| 430 | 431 | utimes(zMbcs, tv); |
| 431 | 432 | #else |
| 432 | 433 | struct _utimbuf tb; |
| 433 | 434 | wchar_t *zMbcs = fossil_utf8_to_filename(zFilename); |
| 434 | 435 | tb.actime = newMTime; |
| 435 | 436 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -420,15 +420,16 @@ | |
| 420 | /* |
| 421 | ** Set the mtime for a file. |
| 422 | */ |
| 423 | void file_set_mtime(const char *zFilename, i64 newMTime){ |
| 424 | #if !defined(_WIN32) |
| 425 | struct timeval tv[2]; |
| 426 | memset(tv, 0, sizeof(tv[0])*2); |
| 427 | tv[0].tv_sec = newMTime; |
| 428 | tv[1].tv_sec = newMTime; |
| 429 | char *zMbcs = fossil_utf8_to_filename(zFilename); |
| 430 | utimes(zMbcs, tv); |
| 431 | #else |
| 432 | struct _utimbuf tb; |
| 433 | wchar_t *zMbcs = fossil_utf8_to_filename(zFilename); |
| 434 | tb.actime = newMTime; |
| 435 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -420,15 +420,16 @@ | |
| 420 | /* |
| 421 | ** Set the mtime for a file. |
| 422 | */ |
| 423 | void file_set_mtime(const char *zFilename, i64 newMTime){ |
| 424 | #if !defined(_WIN32) |
| 425 | char *zMbcs; |
| 426 | struct timeval tv[2]; |
| 427 | memset(tv, 0, sizeof(tv[0])*2); |
| 428 | tv[0].tv_sec = newMTime; |
| 429 | tv[1].tv_sec = newMTime; |
| 430 | zMbcs = fossil_utf8_to_filename(zFilename); |
| 431 | utimes(zMbcs, tv); |
| 432 | #else |
| 433 | struct _utimbuf tb; |
| 434 | wchar_t *zMbcs = fossil_utf8_to_filename(zFilename); |
| 435 | tb.actime = newMTime; |
| 436 |