Fossil SCM
Remove unused local variables.
Commit
cb92c69c2a169970d6d8e2b30089ced982d516e9
Parent
a13738764b3599e…
5 files changed
-1
-1
+1
-1
-1
-1
-1
| --- src/rebuild.c | ||
| +++ src/rebuild.c | ||
| @@ -342,11 +342,10 @@ | ||
| 342 | 342 | ** construct a sane repository. |
| 343 | 343 | */ |
| 344 | 344 | int rebuild_db(int randomize, int doOut, int doClustering){ |
| 345 | 345 | Stmt s, q; |
| 346 | 346 | int errCnt = 0; |
| 347 | - char *zTable; | |
| 348 | 347 | int incrSize; |
| 349 | 348 | Blob sql; |
| 350 | 349 | |
| 351 | 350 | bag_init(&bagDone); |
| 352 | 351 | ttyOutput = doOut; |
| 353 | 352 |
| --- src/rebuild.c | |
| +++ src/rebuild.c | |
| @@ -342,11 +342,10 @@ | |
| 342 | ** construct a sane repository. |
| 343 | */ |
| 344 | int rebuild_db(int randomize, int doOut, int doClustering){ |
| 345 | Stmt s, q; |
| 346 | int errCnt = 0; |
| 347 | char *zTable; |
| 348 | int incrSize; |
| 349 | Blob sql; |
| 350 | |
| 351 | bag_init(&bagDone); |
| 352 | ttyOutput = doOut; |
| 353 |
| --- src/rebuild.c | |
| +++ src/rebuild.c | |
| @@ -342,11 +342,10 @@ | |
| 342 | ** construct a sane repository. |
| 343 | */ |
| 344 | int rebuild_db(int randomize, int doOut, int doClustering){ |
| 345 | Stmt s, q; |
| 346 | int errCnt = 0; |
| 347 | int incrSize; |
| 348 | Blob sql; |
| 349 | |
| 350 | bag_init(&bagDone); |
| 351 | ttyOutput = doOut; |
| 352 |
-1
| --- src/tar.c | ||
| +++ src/tar.c | ||
| @@ -476,11 +476,10 @@ | ||
| 476 | 476 | Manifest *pManifest; |
| 477 | 477 | ManifestFile *pFile; |
| 478 | 478 | Blob filename; |
| 479 | 479 | int nPrefix; |
| 480 | 480 | char *zName = 0; |
| 481 | - char *zUuid; | |
| 482 | 481 | unsigned int mTime; |
| 483 | 482 | |
| 484 | 483 | content_get(rid, &mfile); |
| 485 | 484 | if( blob_size(&mfile)==0 ){ |
| 486 | 485 | blob_zero(pTar); |
| 487 | 486 |
| --- src/tar.c | |
| +++ src/tar.c | |
| @@ -476,11 +476,10 @@ | |
| 476 | Manifest *pManifest; |
| 477 | ManifestFile *pFile; |
| 478 | Blob filename; |
| 479 | int nPrefix; |
| 480 | char *zName = 0; |
| 481 | char *zUuid; |
| 482 | unsigned int mTime; |
| 483 | |
| 484 | content_get(rid, &mfile); |
| 485 | if( blob_size(&mfile)==0 ){ |
| 486 | blob_zero(pTar); |
| 487 |
| --- src/tar.c | |
| +++ src/tar.c | |
| @@ -476,11 +476,10 @@ | |
| 476 | Manifest *pManifest; |
| 477 | ManifestFile *pFile; |
| 478 | Blob filename; |
| 479 | int nPrefix; |
| 480 | char *zName = 0; |
| 481 | unsigned int mTime; |
| 482 | |
| 483 | content_get(rid, &mfile); |
| 484 | if( blob_size(&mfile)==0 ){ |
| 485 | blob_zero(pTar); |
| 486 |
+1
-1
| --- src/verify.c | ||
| +++ src/verify.c | ||
| @@ -34,11 +34,11 @@ | ||
| 34 | 34 | ** |
| 35 | 35 | ** Panic if anything goes wrong. If this procedure returns it means |
| 36 | 36 | ** that everything is OK. |
| 37 | 37 | */ |
| 38 | 38 | static void verify_rid(int rid){ |
| 39 | - Blob uuid, hash, content; | |
| 39 | + Blob uuid, content; | |
| 40 | 40 | if( content_size(rid, 0)<0 ){ |
| 41 | 41 | return; /* No way to verify phantoms */ |
| 42 | 42 | } |
| 43 | 43 | blob_zero(&uuid); |
| 44 | 44 | db_blob(&uuid, "SELECT uuid FROM blob WHERE rid=%d", rid); |
| 45 | 45 |
| --- src/verify.c | |
| +++ src/verify.c | |
| @@ -34,11 +34,11 @@ | |
| 34 | ** |
| 35 | ** Panic if anything goes wrong. If this procedure returns it means |
| 36 | ** that everything is OK. |
| 37 | */ |
| 38 | static void verify_rid(int rid){ |
| 39 | Blob uuid, hash, content; |
| 40 | if( content_size(rid, 0)<0 ){ |
| 41 | return; /* No way to verify phantoms */ |
| 42 | } |
| 43 | blob_zero(&uuid); |
| 44 | db_blob(&uuid, "SELECT uuid FROM blob WHERE rid=%d", rid); |
| 45 |
| --- src/verify.c | |
| +++ src/verify.c | |
| @@ -34,11 +34,11 @@ | |
| 34 | ** |
| 35 | ** Panic if anything goes wrong. If this procedure returns it means |
| 36 | ** that everything is OK. |
| 37 | */ |
| 38 | static void verify_rid(int rid){ |
| 39 | Blob uuid, content; |
| 40 | if( content_size(rid, 0)<0 ){ |
| 41 | return; /* No way to verify phantoms */ |
| 42 | } |
| 43 | blob_zero(&uuid); |
| 44 | db_blob(&uuid, "SELECT uuid FROM blob WHERE rid=%d", rid); |
| 45 |
-1
| --- src/vfile.c | ||
| +++ src/vfile.c | ||
| @@ -171,11 +171,10 @@ | ||
| 171 | 171 | ** to see whether or not the edit was a null-edit. |
| 172 | 172 | */ |
| 173 | 173 | void vfile_check_signature(int vid, unsigned int cksigFlags){ |
| 174 | 174 | int nErr = 0; |
| 175 | 175 | Stmt q; |
| 176 | - Blob fileCksum, origCksum; | |
| 177 | 176 | int useMtime = (cksigFlags & CKSIG_HASH)==0 |
| 178 | 177 | && db_get_boolean("mtime-changes", 1); |
| 179 | 178 | |
| 180 | 179 | db_begin_transaction(); |
| 181 | 180 | db_prepare(&q, "SELECT id, %Q || pathname," |
| 182 | 181 |
| --- src/vfile.c | |
| +++ src/vfile.c | |
| @@ -171,11 +171,10 @@ | |
| 171 | ** to see whether or not the edit was a null-edit. |
| 172 | */ |
| 173 | void vfile_check_signature(int vid, unsigned int cksigFlags){ |
| 174 | int nErr = 0; |
| 175 | Stmt q; |
| 176 | Blob fileCksum, origCksum; |
| 177 | int useMtime = (cksigFlags & CKSIG_HASH)==0 |
| 178 | && db_get_boolean("mtime-changes", 1); |
| 179 | |
| 180 | db_begin_transaction(); |
| 181 | db_prepare(&q, "SELECT id, %Q || pathname," |
| 182 |
| --- src/vfile.c | |
| +++ src/vfile.c | |
| @@ -171,11 +171,10 @@ | |
| 171 | ** to see whether or not the edit was a null-edit. |
| 172 | */ |
| 173 | void vfile_check_signature(int vid, unsigned int cksigFlags){ |
| 174 | int nErr = 0; |
| 175 | Stmt q; |
| 176 | int useMtime = (cksigFlags & CKSIG_HASH)==0 |
| 177 | && db_get_boolean("mtime-changes", 1); |
| 178 | |
| 179 | db_begin_transaction(); |
| 180 | db_prepare(&q, "SELECT id, %Q || pathname," |
| 181 |
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -755,11 +755,10 @@ | ||
| 755 | 755 | ** The type of hash computed (SHA1, SHA3-224, SHA3-256) is determined by |
| 756 | 756 | ** the length of the input hash in pHash. |
| 757 | 757 | */ |
| 758 | 758 | static int check_tail_hash(Blob *pHash, Blob *pMsg){ |
| 759 | 759 | Blob tail; |
| 760 | - Blob h2; | |
| 761 | 760 | int rc; |
| 762 | 761 | blob_tail(pMsg, &tail); |
| 763 | 762 | rc = hname_verify_hash(&tail, blob_buffer(pHash), blob_size(pHash)); |
| 764 | 763 | blob_reset(&tail); |
| 765 | 764 | return rc==HNAME_ERROR; |
| 766 | 765 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -755,11 +755,10 @@ | |
| 755 | ** The type of hash computed (SHA1, SHA3-224, SHA3-256) is determined by |
| 756 | ** the length of the input hash in pHash. |
| 757 | */ |
| 758 | static int check_tail_hash(Blob *pHash, Blob *pMsg){ |
| 759 | Blob tail; |
| 760 | Blob h2; |
| 761 | int rc; |
| 762 | blob_tail(pMsg, &tail); |
| 763 | rc = hname_verify_hash(&tail, blob_buffer(pHash), blob_size(pHash)); |
| 764 | blob_reset(&tail); |
| 765 | return rc==HNAME_ERROR; |
| 766 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -755,11 +755,10 @@ | |
| 755 | ** The type of hash computed (SHA1, SHA3-224, SHA3-256) is determined by |
| 756 | ** the length of the input hash in pHash. |
| 757 | */ |
| 758 | static int check_tail_hash(Blob *pHash, Blob *pMsg){ |
| 759 | Blob tail; |
| 760 | int rc; |
| 761 | blob_tail(pMsg, &tail); |
| 762 | rc = hname_verify_hash(&tail, blob_buffer(pHash), blob_size(pHash)); |
| 763 | blob_reset(&tail); |
| 764 | return rc==HNAME_ERROR; |
| 765 |