diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2022-02-01 23:32:52 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2022-02-01 23:32:52 +0000 |
commit | 7146816f625e1234e6b34f72720fd9e40dfab7af (patch) | |
tree | 79e3ed441326ff73fb0a226f3fba49cbece9b1be /usr.bin/ssh/sshconnect2.c | |
parent | f64043743859c59026ca06b86bb35e654c39d2cc (diff) |
mark const string array contents const too, i.e.
static const char *array => static const char * const array
from Mike Frysinger
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r-- | usr.bin/ssh/sshconnect2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index ce0f77e851a..1171e5a08ce 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect2.c,v 1.355 2022/01/06 22:06:51 djm Exp $ */ +/* $OpenBSD: sshconnect2.c,v 1.356 2022/02/01 23:32:51 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2008 Damien Miller. All rights reserved. @@ -1311,7 +1311,7 @@ identity_sign(struct identity *id, u_char **sigp, size_t *lenp, static int id_filename_matches(Identity *id, Identity *private_id) { - const char *suffixes[] = { ".pub", "-cert.pub", NULL }; + static const char * const suffixes[] = { ".pub", "-cert.pub", NULL }; size_t len = strlen(id->filename), plen = strlen(private_id->filename); size_t i, slen; |