summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/rsync.c
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2024-03-22 03:38:13 +0000
committerJob Snijders <job@cvs.openbsd.org>2024-03-22 03:38:13 +0000
commitca99ddc00ae293d3d1a35b7fbcdb8200440d788b (patch)
treeece24d2e8a33e59ffbe9e512d7665b737e55064f /usr.sbin/rpki-client/rsync.c
parentb477caf1aa0002822f1ad3071cd5c5ce7d12f380 (diff)
Replace protocol literal strings and strlen() calls with defined constants
OK tb@ claudio@
Diffstat (limited to 'usr.sbin/rpki-client/rsync.c')
-rw-r--r--usr.sbin/rpki-client/rsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/rsync.c b/usr.sbin/rpki-client/rsync.c
index ca838e08fa7..33fe81541b7 100644
--- a/usr.sbin/rpki-client/rsync.c
+++ b/usr.sbin/rpki-client/rsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsync.c,v 1.49 2024/02/26 20:37:27 job Exp $ */
+/* $OpenBSD: rsync.c,v 1.50 2024/03/22 03:38:12 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -65,7 +65,7 @@ rsync_base_uri(const char *uri)
char *base_uri;
/* Case-insensitive rsync URI. */
- if (strncasecmp(uri, "rsync://", 8) != 0) {
+ if (strncasecmp(uri, RSYNC_PROTO, RSYNC_PROTO_LEN) != 0) {
warnx("%s: not using rsync schema", uri);
return NULL;
}