Move SNAPSF/STOREF defines to dedup.h - 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 d189d4fc283a9295791c1c7a83802ab4141651ca
DIR parent 94a49be0c19300d3a57a3d25ba58236c67e912a2
HTML Author: sin <sin@2f30.org>
Date: Thu, 18 Apr 2019 11:18:48 +0100
Move SNAPSF/STOREF defines to dedup.h
Diffstat:
M dcheck.c | 3 ---
M dedup.h | 3 +++
M dinfo.c | 3 ---
M dinit.c | 3 ---
M dlist.c | 3 ---
M dpack.c | 3 ---
M dunpack.c | 3 ---
7 files changed, 3 insertions(+), 18 deletions(-)
---
DIR diff --git a/dcheck.c b/dcheck.c
@@ -14,9 +14,6 @@
#include "blake2.h"
#include "dedup.h"
-#define SNAPSF ".snapshots"
-#define STOREF ".store"
-
static struct snap_hdr snap_hdr;
static struct blk_hdr blk_hdr;
static int ifd;
DIR diff --git a/dedup.h b/dedup.h
@@ -1,5 +1,8 @@
#include "config.h"
+#define SNAPSF ".snapshots"
+#define STOREF ".store"
+
/*
* These are the actual sizes of the structs in the
* file format itself. The types are serialized/deserialized
DIR diff --git a/dinfo.c b/dinfo.c
@@ -14,9 +14,6 @@
#include "blake2.h"
#include "dedup.h"
-#define SNAPSF ".snapshots"
-#define STOREF ".store"
-
static struct snap_hdr snap_hdr;
static struct blk_hdr blk_hdr;
static int ifd;
DIR diff --git a/dinit.c b/dinit.c
@@ -14,9 +14,6 @@
#include "blake2.h"
#include "dedup.h"
-#define SNAPSF ".snapshots"
-#define STOREF ".store"
-
static struct snap_hdr snap_hdr;
static struct blk_hdr blk_hdr;
static int ifd;
DIR diff --git a/dlist.c b/dlist.c
@@ -14,9 +14,6 @@
#include "blake2.h"
#include "dedup.h"
-#define SNAPSF ".snapshots"
-#define STOREF ".store"
-
static struct snap_hdr snap_hdr;
static struct blk_hdr blk_hdr;
static int ifd;
DIR diff --git a/dpack.c b/dpack.c
@@ -14,9 +14,6 @@
#include "blake2.h"
#include "dedup.h"
-#define SNAPSF ".snapshots"
-#define STOREF ".store"
-
static struct snap_hdr snap_hdr;
static struct blk_hdr blk_hdr;
static struct icache *icache;
DIR diff --git a/dunpack.c b/dunpack.c
@@ -14,9 +14,6 @@
#include "blake2.h"
#include "dedup.h"
-#define SNAPSF ".snapshots"
-#define STOREF ".store"
-
struct extract_args {
uint8_t *md;
int fd;