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 /nchan.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 'nchan.c')
-rw-r--r-- | nchan.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: nchan.c,v 1.73 2021/05/19 01:24:05 djm Exp $ */ +/* $OpenBSD: nchan.c,v 1.74 2022/02/01 23:32:51 djm Exp $ */ /* * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. * @@ -82,8 +82,12 @@ static void chan_shutdown_write(struct ssh *, Channel *); static void chan_shutdown_read(struct ssh *, Channel *); static void chan_shutdown_extended_read(struct ssh *, Channel *); -static const char *ostates[] = { "open", "drain", "wait_ieof", "closed" }; -static const char *istates[] = { "open", "drain", "wait_oclose", "closed" }; +static const char * const ostates[] = { + "open", "drain", "wait_ieof", "closed", +}; +static const char * const istates[] = { + "open", "drain", "wait_oclose", "closed", +}; static void chan_set_istate(Channel *c, u_int next) |