From 549dfc51b07c0c749ebde15a3fa855ab496ea18a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 8 Aug 2022 11:00:50 -0600 Subject: Constify some target_so_ops instances This changes some target_so_ops instances to be const. This makes their use a little more obvious (they can't be mutated) and also allows for the removal of some initialization code. --- gdb/solib-darwin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/solib-darwin.h') diff --git a/gdb/solib-darwin.h b/gdb/solib-darwin.h index e920e7a..32e7c8d 100644 --- a/gdb/solib-darwin.h +++ b/gdb/solib-darwin.h @@ -23,6 +23,6 @@ struct objfile; struct target_so_ops; -extern struct target_so_ops darwin_so_ops; +extern const struct target_so_ops darwin_so_ops; #endif /* solib-darwin.h */ -- cgit v1.1