commit 1cec40f109d1d6ae9e58b7f1e0fdd6c596155eee
parent fe9f87887380dd21504bc482b245398ae9be0d1a
Author: sin <sin@2f30.org>
Date: Sun, 12 May 2019 10:19:24 +0100
Rename some more symbols
Diffstat:
6 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/dup-check.c b/dup-check.c
@@ -23,7 +23,7 @@ int verbose;
char *argv0;
static void
-initparam(char *repo)
+loadstate(char *repo)
{
char path[PATH_MAX];
int fd;
@@ -40,7 +40,7 @@ initparam(char *repo)
}
static void
-initkey(char *keyfile)
+loadkey(char *keyfile)
{
int fd;
@@ -126,8 +126,8 @@ main(int argc, char *argv[])
if ((lfd = lockrepo(repo)) < 0)
errx(1, "failed to lock repository");
- initparam(repo);
- initkey(keyfile);
+ loadstate(repo);
+ loadkey(keyfile);
if (sopen(spath, S_READ, 0600, &sctx) < 0)
serr("sopen: %s", spath);
diff --git a/dup-gc.c b/dup-gc.c
@@ -21,7 +21,7 @@ int verbose;
char *argv0;
static void
-initparam(char *repo)
+loadstate(char *repo)
{
char path[PATH_MAX];
int fd;
@@ -38,7 +38,7 @@ initparam(char *repo)
}
static void
-initkey(char *keyfile)
+loadkey(char *keyfile)
{
int fd;
@@ -100,8 +100,8 @@ main(int argc, char *argv[])
if ((lfd = lockrepo(repo)) < 0)
errx(1, "failed to lock repository");
- initparam(repo);
- initkey(keyfile);
+ loadstate(repo);
+ loadkey(keyfile);
if (bopen(path, B_RDWR, 0600, &bctx) < 0)
berr("bopen: %s", path);
diff --git a/dup-init.c b/dup-init.c
@@ -22,7 +22,7 @@ int verbose;
char *argv0;
static void
-initparam(char *repo)
+savestate(char *repo)
{
char path[PATH_MAX];
int fd;
@@ -39,7 +39,7 @@ initparam(char *repo)
}
static void
-initkey(char *keyfile)
+loadkey(char *keyfile)
{
int fd;
@@ -111,14 +111,14 @@ main(int argc, char *argv[])
repo, STORAGEPATH) >= sizeof(bpath))
errx(1, "snprintf: %s: path too long", bpath);
- initkey(keyfile);
+ loadkey(keyfile);
if (mkdir(repo, 0700) < 0)
err(1, "mkdir: %s", repo);
if ((lfd = lockrepo(repo)) < 0)
errx(1, "failed to lock repository");
if (mkdir(spath, 0700) < 0)
err(1, "mkdir: %s", spath);
- initparam(repo);
+ savestate(repo);
if (bcreat(bpath, 0600, &bctx) < 0)
berr("bcreat: %s", bpath);
if (bclose(bctx) < 0)
diff --git a/dup-pack.c b/dup-pack.c
@@ -22,7 +22,7 @@ int verbose;
char *argv0;
static void
-initparam(char *repo)
+loadstate(char *repo)
{
char path[PATH_MAX];
int fd;
@@ -39,7 +39,7 @@ initparam(char *repo)
}
static void
-initkey(char *keyfile)
+loadkey(char *keyfile)
{
int fd;
@@ -129,8 +129,8 @@ main(int argc, char *argv[])
if ((lfd = lockrepo(repo)) < 0)
errx(1, "failed to lock repository");
- initparam(repo);
- initkey(keyfile);
+ loadstate(repo);
+ loadkey(keyfile);
if (screat(spath, 0600, &sctx) < 0)
serr("screat: %s", spath);
diff --git a/dup-rm.c b/dup-rm.c
@@ -21,7 +21,7 @@ int verbose;
char *argv0;
static void
-initparam(char *repo)
+loadstate(char *repo)
{
char path[PATH_MAX];
int fd;
@@ -38,7 +38,7 @@ initparam(char *repo)
}
static void
-initkey(char *keyfile)
+loadkey(char *keyfile)
{
int fd;
@@ -115,8 +115,8 @@ main(int argc, char *argv[])
if ((lfd = lockrepo(repo)) < 0)
errx(1, "failed to lock repository");
- initparam(repo);
- initkey(keyfile);
+ loadstate(repo);
+ loadkey(keyfile);
if (sopen(spath, S_READ, 0600, &sctx) < 0)
serr("sopen: %s", spath);
diff --git a/dup-unpack.c b/dup-unpack.c
@@ -22,7 +22,7 @@ int verbose;
char *argv0;
static void
-initparam(char *repo)
+loadstate(char *repo)
{
char path[PATH_MAX];
int fd;
@@ -39,7 +39,7 @@ initparam(char *repo)
}
static void
-initkey(char *keyfile)
+loadkey(char *keyfile)
{
int fd;
@@ -125,8 +125,8 @@ main(int argc, char *argv[])
if ((lfd = lockrepo(repo)) < 0)
errx(1, "failed to lock repository");
- initparam(repo);
- initkey(keyfile);
+ loadstate(repo);
+ loadkey(keyfile);
if (sopen(spath, S_READ, 0600, &sctx) < 0)
serr("sopen: %s", spath);