summaryrefslogtreecommitdiff
path: root/usr.bin/rsync
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-05-21 05:00:49 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-05-21 05:00:49 +0000
commit9299db4d45f255b8fe176a23e4b33db8d85f5508 (patch)
tree93bb0788559a24bc5c8049b026b4d45a3c324cf9 /usr.bin/rsync
parent2b420f805f31d3140396e09beb8a7a98056d23af (diff)
remove prototypes with no matching function and externs with no var
partly checked by millert@
Diffstat (limited to 'usr.bin/rsync')
-rw-r--r--usr.bin/rsync/extern.h5
-rw-r--r--usr.bin/rsync/receiver.c4
2 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/rsync/extern.h b/usr.bin/rsync/extern.h
index 940db81d5db..5bb23aaa486 100644
--- a/usr.bin/rsync/extern.h
+++ b/usr.bin/rsync/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.48 2024/02/27 11:28:30 claudio Exp $ */
+/* $OpenBSD: extern.h,v 1.49 2024/05/21 05:00:48 jsg Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -301,8 +301,6 @@ extern int verbose;
void rsync_log(int, const char *, ...)
__attribute__((format(printf, 2, 3)));
-void rsync_warnx1(const char *, ...)
- __attribute__((format(printf, 1, 2)));
void rsync_warn(int, const char *, ...)
__attribute__((format(printf, 2, 3)));
void rsync_warnx(const char *, ...)
@@ -316,7 +314,6 @@ void rsync_errx1(const char *, ...)
int flist_del(struct sess *, int, const struct flist *, size_t);
int flist_gen(struct sess *, size_t, char **, struct flist **, size_t *);
-int flist_gen_local(struct sess *, const char *, struct flist **, size_t *);
void flist_free(struct flist *, size_t);
int flist_recv(struct sess *, int, struct flist **, size_t *);
int flist_send(struct sess *, int, int, const struct flist *, size_t);
diff --git a/usr.bin/rsync/receiver.c b/usr.bin/rsync/receiver.c
index 2d055f38a3e..256a788b4f0 100644
--- a/usr.bin/rsync/receiver.c
+++ b/usr.bin/rsync/receiver.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: receiver.c,v 1.32 2023/11/27 11:30:49 claudio Exp $ */
+/* $OpenBSD: receiver.c,v 1.33 2024/05/21 05:00:48 jsg Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -281,7 +281,7 @@ rsync_receiver(struct sess *sess, int fdin, int fdout, const char *root)
if (sess->opts->del &&
sess->opts->recursive &&
!flist_gen_dels(sess, root, &dfl, &dflsz, fl, flsz)) {
- ERRX1("flist_gen_local");
+ ERRX1("rsync_receiver");
goto out;
}