artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3112ee
)
Make it possible to check for existing string in maps.
author
mpi
<mpi@openbsd.org>
Tue, 27 Feb 2024 12:38:12 +0000
(12:38 +0000)
committer
mpi
<mpi@openbsd.org>
Tue, 27 Feb 2024 12:38:12 +0000
(12:38 +0000)
usr.sbin/btrace/btrace.c
patch
|
blob
|
history
diff --git
a/usr.sbin/btrace/btrace.c
b/usr.sbin/btrace/btrace.c
index
4450e98
..
ce32989
100644
(file)
--- a/
usr.sbin/btrace/btrace.c
+++ b/
usr.sbin/btrace/btrace.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: btrace.c,v 1.8
8 2024/02/24 19:42:54
mpi Exp $ */
+/* $OpenBSD: btrace.c,v 1.8
9 2024/02/27 12:38:12
mpi Exp $ */
/*
* Copyright (c) 2019 - 2023 Martin Pieuchot <mpi@openbsd.org>
@@
-1640,6
+1640,9
@@
ba2long(struct bt_arg *ba, struct dt_evt *dtev)
long val;
switch (ba->ba_type) {
+ case B_AT_STR:
+ val = (*ba2str(ba, dtev) == '\0') ? 0 : 1;
+ break;
case B_AT_LONG:
val = (long)ba->ba_value;
break;