From: claudio Date: Wed, 29 Mar 2023 14:35:38 +0000 (+0000) Subject: Mark the struct aid name as const char * since it points to static memory. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=439b8fa3f859f286ba801f4815deefa8e8df9b1b;p=openbsd Mark the struct aid name as const char * since it points to static memory. --- diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 21b239148bc..508d598b6d0 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.468 2023/03/28 13:30:31 claudio Exp $ */ +/* $OpenBSD: bgpd.h,v 1.469 2023/03/29 14:35:38 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -162,7 +162,7 @@ struct aid { uint16_t afi; sa_family_t af; uint8_t safi; - char *name; + const char *name; }; extern const struct aid aid_vals[];