Fossil SCM
Remove unused variables
Commit
f9decff05e419d24144dde03c8518c87c3a070a6
Parent
b3acfa2e4acd84b…
1 file changed
-3
-3
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -185,11 +185,10 @@ | ||
| 185 | 185 | ** database. Otherwise, 0 is returned. |
| 186 | 186 | ** mark->name is dynamically allocated, and owned by the caller. |
| 187 | 187 | */ |
| 188 | 188 | int parse_mark(char *line, struct mark_t *mark){ |
| 189 | 189 | char *cur_tok; |
| 190 | - char type; | |
| 191 | 190 | cur_tok = strtok(line, " \t"); |
| 192 | 191 | if(!cur_tok||strlen(cur_tok)<2){ |
| 193 | 192 | return -1; |
| 194 | 193 | } |
| 195 | 194 | mark->rid = atoi(&cur_tok[1]); |
| @@ -243,11 +242,10 @@ | ||
| 243 | 242 | ** or the rid/uuid information doesn't match what is in the repository |
| 244 | 243 | ** database. Otherwise, 0 is returned. |
| 245 | 244 | */ |
| 246 | 245 | int import_marks(FILE* f, Bag *blobs, Bag *vers){ |
| 247 | 246 | char line[101]; |
| 248 | - size_t len; | |
| 249 | 247 | while(fgets(line, sizeof(line), f)){ |
| 250 | 248 | struct mark_t mark; |
| 251 | 249 | if(strlen(line)==100&&line[99]!='\n'){ |
| 252 | 250 | /* line too long */ |
| 253 | 251 | return -1; |
| @@ -357,11 +355,10 @@ | ||
| 357 | 355 | db_multi_exec("CREATE TEMPORARY TABLE oldblob(rid INTEGER PRIMARY KEY)"); |
| 358 | 356 | db_multi_exec("CREATE TEMPORARY TABLE oldcommit(rid INTEGER PRIMARY KEY)"); |
| 359 | 357 | db_multi_exec("CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT)"); |
| 360 | 358 | if( markfile_in!=0 ){ |
| 361 | 359 | Stmt qb,qc; |
| 362 | - char line[100]; | |
| 363 | 360 | FILE *f; |
| 364 | 361 | int rid; |
| 365 | 362 | |
| 366 | 363 | f = fossil_fopen(markfile_in, "r"); |
| 367 | 364 | if( f==0 ){ |
| 368 | 365 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -185,11 +185,10 @@ | |
| 185 | ** database. Otherwise, 0 is returned. |
| 186 | ** mark->name is dynamically allocated, and owned by the caller. |
| 187 | */ |
| 188 | int parse_mark(char *line, struct mark_t *mark){ |
| 189 | char *cur_tok; |
| 190 | char type; |
| 191 | cur_tok = strtok(line, " \t"); |
| 192 | if(!cur_tok||strlen(cur_tok)<2){ |
| 193 | return -1; |
| 194 | } |
| 195 | mark->rid = atoi(&cur_tok[1]); |
| @@ -243,11 +242,10 @@ | |
| 243 | ** or the rid/uuid information doesn't match what is in the repository |
| 244 | ** database. Otherwise, 0 is returned. |
| 245 | */ |
| 246 | int import_marks(FILE* f, Bag *blobs, Bag *vers){ |
| 247 | char line[101]; |
| 248 | size_t len; |
| 249 | while(fgets(line, sizeof(line), f)){ |
| 250 | struct mark_t mark; |
| 251 | if(strlen(line)==100&&line[99]!='\n'){ |
| 252 | /* line too long */ |
| 253 | return -1; |
| @@ -357,11 +355,10 @@ | |
| 357 | db_multi_exec("CREATE TEMPORARY TABLE oldblob(rid INTEGER PRIMARY KEY)"); |
| 358 | db_multi_exec("CREATE TEMPORARY TABLE oldcommit(rid INTEGER PRIMARY KEY)"); |
| 359 | db_multi_exec("CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT)"); |
| 360 | if( markfile_in!=0 ){ |
| 361 | Stmt qb,qc; |
| 362 | char line[100]; |
| 363 | FILE *f; |
| 364 | int rid; |
| 365 | |
| 366 | f = fossil_fopen(markfile_in, "r"); |
| 367 | if( f==0 ){ |
| 368 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -185,11 +185,10 @@ | |
| 185 | ** database. Otherwise, 0 is returned. |
| 186 | ** mark->name is dynamically allocated, and owned by the caller. |
| 187 | */ |
| 188 | int parse_mark(char *line, struct mark_t *mark){ |
| 189 | char *cur_tok; |
| 190 | cur_tok = strtok(line, " \t"); |
| 191 | if(!cur_tok||strlen(cur_tok)<2){ |
| 192 | return -1; |
| 193 | } |
| 194 | mark->rid = atoi(&cur_tok[1]); |
| @@ -243,11 +242,10 @@ | |
| 242 | ** or the rid/uuid information doesn't match what is in the repository |
| 243 | ** database. Otherwise, 0 is returned. |
| 244 | */ |
| 245 | int import_marks(FILE* f, Bag *blobs, Bag *vers){ |
| 246 | char line[101]; |
| 247 | while(fgets(line, sizeof(line), f)){ |
| 248 | struct mark_t mark; |
| 249 | if(strlen(line)==100&&line[99]!='\n'){ |
| 250 | /* line too long */ |
| 251 | return -1; |
| @@ -357,11 +355,10 @@ | |
| 355 | db_multi_exec("CREATE TEMPORARY TABLE oldblob(rid INTEGER PRIMARY KEY)"); |
| 356 | db_multi_exec("CREATE TEMPORARY TABLE oldcommit(rid INTEGER PRIMARY KEY)"); |
| 357 | db_multi_exec("CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT)"); |
| 358 | if( markfile_in!=0 ){ |
| 359 | Stmt qb,qc; |
| 360 | FILE *f; |
| 361 | int rid; |
| 362 | |
| 363 | f = fossil_fopen(markfile_in, "r"); |
| 364 | if( f==0 ){ |
| 365 |