diff options
author | djm@openbsd.org <djm@openbsd.org> | 2022-02-02 00:32:51 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2022-02-02 00:38:59 +0100 |
commit | 541667fe6dc26d7881e55f0bb3a4baa6f3171645 (patch) | |
tree | 1844fb6f21e883bafb536aee224ccf15b5ac3978 /ssh-keygen.c | |
parent | upstream: better match legacy scp behaviour: show un-expanded paths (diff) | |
download | openssh-541667fe6dc26d7881e55f0bb3a4baa6f3171645.tar.xz openssh-541667fe6dc26d7881e55f0bb3a4baa6f3171645.zip |
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 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 05901cb02..d4b7f4dcf 100644 --- a/ssh-keygen.c +++ b/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 @@ -2460,7 +2460,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; |