From 541667fe6dc26d7881e55f0bb3a4baa6f3171645 Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Tue, 1 Feb 2022 23:32:51 +0000 Subject: 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 --- nchan.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'nchan.c') diff --git a/nchan.c b/nchan.c index 7ef3a350b..d33426fed 100644 --- a/nchan.c +++ b/nchan.c @@ -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) -- cgit v1.2.3