dedup

deduplicating backup program
git clone git://git.2f30.org/dedup.git
Log | Files | Refs | README | LICENSE

commit 0bf61ad5efda6cffccf715d49f109d136c74931e
parent 877bf7ca5529c15deba0714df94d534e1e25e430
Author: sin <sin@2f30.org>
Date:   Sun, 19 May 2019 20:18:04 +0300

Remove unused vars, thanks Evil_Bob!

Diffstat:
Mbstorage.c | 2+-
Mdup-pack.c | 1-
Mdup-rm.c | 1-
Mdup-unpack.c | 1-
Msnap.c | 11-----------
Msnap.h | 1-
6 files changed, 1 insertion(+), 16 deletions(-)

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: 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; 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; 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; 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) { 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 *);