Fossil SCM

Fix the timeline.c module to be C89-compliant. MSVC needs this.

drh 2011-08-27 17:53 trunk
Commit 8a5f2a7a3a3fded92c151fcd3b1579fd91eb4e0d
1 file changed +1 -1
+1 -1
--- src/timeline.c
+++ src/timeline.c
@@ -1259,13 +1259,13 @@
12591259
*/
12601260
void print_timeline(Stmt *q, int mxLine, int showfiles){
12611261
int nLine = 0;
12621262
char zPrevDate[20];
12631263
const char *zCurrentUuid=0;
1264
- zPrevDate[0] = 0;
12651264
int fchngQueryInit = 0; /* True if fchngQuery is initialized */
12661265
Stmt fchngQuery; /* Query for file changes on check-ins */
1266
+ zPrevDate[0] = 0;
12671267
12681268
if( g.localOpen ){
12691269
int rid = db_lget_int("checkout", 0);
12701270
zCurrentUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
12711271
}
12721272
--- src/timeline.c
+++ src/timeline.c
@@ -1259,13 +1259,13 @@
1259 */
1260 void print_timeline(Stmt *q, int mxLine, int showfiles){
1261 int nLine = 0;
1262 char zPrevDate[20];
1263 const char *zCurrentUuid=0;
1264 zPrevDate[0] = 0;
1265 int fchngQueryInit = 0; /* True if fchngQuery is initialized */
1266 Stmt fchngQuery; /* Query for file changes on check-ins */
 
1267
1268 if( g.localOpen ){
1269 int rid = db_lget_int("checkout", 0);
1270 zCurrentUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
1271 }
1272
--- src/timeline.c
+++ src/timeline.c
@@ -1259,13 +1259,13 @@
1259 */
1260 void print_timeline(Stmt *q, int mxLine, int showfiles){
1261 int nLine = 0;
1262 char zPrevDate[20];
1263 const char *zCurrentUuid=0;
 
1264 int fchngQueryInit = 0; /* True if fchngQuery is initialized */
1265 Stmt fchngQuery; /* Query for file changes on check-ins */
1266 zPrevDate[0] = 0;
1267
1268 if( g.localOpen ){
1269 int rid = db_lget_int("checkout", 0);
1270 zCurrentUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
1271 }
1272

Keyboard Shortcuts

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