Remove unused vars, thanks Evil_Bob! - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 0bf61ad5efda6cffccf715d49f109d136c74931e DIR parent 877bf7ca5529c15deba0714df94d534e1e25e430 HTML Author: sin <sin@2f30.org> Date: Sun, 19 May 2019 20:18:04 +0300 Remove unused vars, thanks Evil_Bob! Diffstat: M bstorage.c | 2 +- M dup-pack.c | 1 - M dup-rm.c | 1 - M dup-unpack.c | 1 - M snap.c | 11 ----------- M snap.h | 1 - 6 files changed, 1 insertion(+), 16 deletions(-) --- DIR diff --git a/bstorage.c b/bstorage.c @@ -313,7 +313,7 @@ bsopen(struct bctx *bctx, char *path, int flags, int mode) unsigned char bhdrbuf[BHDRSIZE]; struct sctx *sctx; struct bhdr *bhdr; - int fd, algo; + int fd; switch (flags) { case B_READ: DIR diff --git a/dup-pack.c b/dup-pack.c @@ -96,7 +96,6 @@ main(int argc, char *argv[]) { char spath[PATH_MAX]; char bpath[PATH_MAX]; - unsigned char key[KEYSIZE]; struct sctx *sctx; struct bctx *bctx; char *keyfile = NULL; DIR diff --git a/dup-rm.c b/dup-rm.c @@ -83,7 +83,6 @@ main(int argc, char *argv[]) { char spath[PATH_MAX]; char bpath[PATH_MAX]; - unsigned char key[KEYSIZE]; struct sctx *sctx; struct bctx *bctx; char *keyfile = NULL; DIR diff --git a/dup-unpack.c b/dup-unpack.c @@ -92,7 +92,6 @@ main(int argc, char *argv[]) { char spath[PATH_MAX]; char bpath[PATH_MAX]; - unsigned char key[KEYSIZE]; struct sctx *sctx; struct bctx *bctx; char *keyfile = NULL; DIR diff --git a/snap.c b/snap.c @@ -392,17 +392,6 @@ sget(struct sctx *sctx, unsigned char *md) return 0; } -int -srewind(struct sctx *sctx) -{ - if (sctx == NULL) { - seterr("invalid params"); - return -1; - } - sctx->mdnext = NULL; - return 0; -} - static int syncnone(struct sctx *sctx) { DIR diff --git a/snap.h b/snap.h @@ -8,6 +8,5 @@ extern int screat(char *, int, struct sctx **); extern int sopen(char *, int flags, int, struct sctx **); extern int sput(struct sctx *, unsigned char *); extern int sget(struct sctx *, unsigned char *); -extern int srewind(struct sctx *); extern int ssync(struct sctx *); extern int sclose(struct sctx *);