Fossil SCM

Remove unused local variables.

drh 2017-03-01 18:21 UTC trunk
Commit cb92c69c2a169970d6d8e2b30089ced982d516e9
--- src/rebuild.c
+++ src/rebuild.c
@@ -342,11 +342,10 @@
342342
** construct a sane repository.
343343
*/
344344
int rebuild_db(int randomize, int doOut, int doClustering){
345345
Stmt s, q;
346346
int errCnt = 0;
347
- char *zTable;
348347
int incrSize;
349348
Blob sql;
350349
351350
bag_init(&bagDone);
352351
ttyOutput = doOut;
353352
--- 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 @@
476476
Manifest *pManifest;
477477
ManifestFile *pFile;
478478
Blob filename;
479479
int nPrefix;
480480
char *zName = 0;
481
- char *zUuid;
482481
unsigned int mTime;
483482
484483
content_get(rid, &mfile);
485484
if( blob_size(&mfile)==0 ){
486485
blob_zero(pTar);
487486
--- 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 @@
3434
**
3535
** Panic if anything goes wrong. If this procedure returns it means
3636
** that everything is OK.
3737
*/
3838
static void verify_rid(int rid){
39
- Blob uuid, hash, content;
39
+ Blob uuid, content;
4040
if( content_size(rid, 0)<0 ){
4141
return; /* No way to verify phantoms */
4242
}
4343
blob_zero(&uuid);
4444
db_blob(&uuid, "SELECT uuid FROM blob WHERE rid=%d", rid);
4545
--- 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
--- src/vfile.c
+++ src/vfile.c
@@ -171,11 +171,10 @@
171171
** to see whether or not the edit was a null-edit.
172172
*/
173173
void vfile_check_signature(int vid, unsigned int cksigFlags){
174174
int nErr = 0;
175175
Stmt q;
176
- Blob fileCksum, origCksum;
177176
int useMtime = (cksigFlags & CKSIG_HASH)==0
178177
&& db_get_boolean("mtime-changes", 1);
179178
180179
db_begin_transaction();
181180
db_prepare(&q, "SELECT id, %Q || pathname,"
182181
--- 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 @@
755755
** The type of hash computed (SHA1, SHA3-224, SHA3-256) is determined by
756756
** the length of the input hash in pHash.
757757
*/
758758
static int check_tail_hash(Blob *pHash, Blob *pMsg){
759759
Blob tail;
760
- Blob h2;
761760
int rc;
762761
blob_tail(pMsg, &tail);
763762
rc = hname_verify_hash(&tail, blob_buffer(pHash), blob_size(pHash));
764763
blob_reset(&tail);
765764
return rc==HNAME_ERROR;
766765
--- 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

Keyboard Shortcuts

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