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/ssh-keygen.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/ssh-keygen.c')
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 5c9034e4aff..70a2a735bb9 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.447 2022/01/05 21:54:37 djm Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.448 2022/02/01 23:32:51 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -2437,7 +2437,7 @@ load_sign_key(const char *keypath, const struct sshkey *pubkey) { size_t i, slen, plen = strlen(keypath); char *privpath = xstrdup(keypath); - const char *suffixes[] = { "-cert.pub", ".pub", NULL }; + static const char * const suffixes[] = { "-cert.pub", ".pub", NULL }; struct sshkey *ret = NULL, *privkey = NULL; int r; |