diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-03-29 14:35:39 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-03-29 14:35:39 +0000 |
commit | 5091d38a88eaa2a9cb7951d39aac8e4b0f742ff8 (patch) | |
tree | 3f500b8cdf929dcd5715e2ffba15019ebe0d08c9 | |
parent | beb95177e646207896ee5dc0b136b68b6575802d (diff) |
Mark the struct aid name as const char * since it points to static memory.
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <henning@openbsd.org> @@ -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[]; |