summaryrefslogtreecommitdiff
path: root/auth-rhosts.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2022-02-01 23:32:51 +0000
committerDamien Miller <djm@mindrot.org>2022-02-02 10:38:59 +1100
commit541667fe6dc26d7881e55f0bb3a4baa6f3171645 (patch)
tree1844fb6f21e883bafb536aee224ccf15b5ac3978 /auth-rhosts.c
parent8cfa73f8a2bde4c98773f33f974c650bdb40dd3c (diff)
downloadopenssh-git-541667fe6dc26d7881e55f0bb3a4baa6f3171645.tar.gz
upstream: mark const string array contents const too, i.e. static
const char *array => static const char * const array from Mike Frysinger OpenBSD-Commit-ID: a664e31ea6a795d7c81153274a5f47b22bdc9bc1
Diffstat (limited to 'auth-rhosts.c')
-rw-r--r--auth-rhosts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-rhosts.c b/auth-rhosts.c
index 0bc4d424..c055b14f 100644
--- a/auth-rhosts.c
+++ b/auth-rhosts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth-rhosts.c,v 1.53 2020/10/18 11:32:01 djm Exp $ */
+/* $OpenBSD: auth-rhosts.c,v 1.54 2022/02/01 23:32:51 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -191,7 +191,7 @@ auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname,
{
char buf[1024];
struct stat st;
- static const char *rhosts_files[] = {".shosts", ".rhosts", NULL};
+ static const char * const rhosts_files[] = {".shosts", ".rhosts", NULL};
u_int rhosts_file_index;
debug2("auth_rhosts2: clientuser %s hostname %s ipaddr %s",