summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/btrace/btrace.c6
-rw-r--r--usr.sbin/btrace/btrace.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c
index 87fc5c1199c..11fef8bfbc7 100644
--- a/usr.sbin/btrace/btrace.c
+++ b/usr.sbin/btrace/btrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: btrace.c,v 1.60 2021/11/12 16:57:24 claudio Exp $ */
+/* $OpenBSD: btrace.c,v 1.61 2021/12/07 22:17:03 guenther Exp $ */
/*
* Copyright (c) 2019 - 2021 Martin Pieuchot <mpi@openbsd.org>
@@ -62,7 +62,7 @@ char *read_btfile(const char *, size_t *);
*/
void dtpi_cache(int);
void dtpi_print_list(void);
-char *dtpi_func(struct dtioc_probe_info *);
+const char *dtpi_func(struct dtioc_probe_info *);
int dtpi_is_unit(const char *);
struct dtioc_probe_info *dtpi_get_by_value(const char *, const char *,
const char *);
@@ -305,7 +305,7 @@ dtpi_print_list(void)
}
}
-char *
+const char *
dtpi_func(struct dtioc_probe_info *dtpi)
{
char *sysnb, func[DTNAMESIZE];
diff --git a/usr.sbin/btrace/btrace.h b/usr.sbin/btrace/btrace.h
index ded754e3d18..d763ae5a5fc 100644
--- a/usr.sbin/btrace/btrace.h
+++ b/usr.sbin/btrace/btrace.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: btrace.h,v 1.10 2021/10/03 22:01:48 dv Exp $ */
+/* $OpenBSD: btrace.h,v 1.11 2021/12/07 22:17:03 guenther Exp $ */
/*
* Copyright (c) 2019 - 2020 Martin Pieuchot <mpi@openbsd.org>
@@ -59,6 +59,6 @@ void hist_print(struct hist *, const char *);
int stmt_printf(struct bt_stmt *, struct dt_evt *);
/* syscalls.c */
-extern char *syscallnames[];
+extern const char *const syscallnames[];
#endif /* BTRACE_H */