diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-03-16 08:54:09 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-03-16 08:54:09 +0000 |
commit | fc346359f7560e4794e0d48b96f931aacc1fc9d7 (patch) | |
tree | 3353e9a217dc260541e7fa6f47974c451facc9ff /usr.sbin/btrace | |
parent | ee6b1332d0ee731ca93d96053f6ec5e9e77bb39c (diff) |
Fix affectation that should be conditionnal tests inside asserts.
From tom@
Diffstat (limited to 'usr.sbin/btrace')
-rw-r--r-- | usr.sbin/btrace/btrace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c index dccef997e14..2008985fde3 100644 --- a/usr.sbin/btrace/btrace.c +++ b/usr.sbin/btrace/btrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: btrace.c,v 1.4 2020/01/28 16:39:51 mpi Exp $ */ +/* $OpenBSD: btrace.c,v 1.5 2020/03/16 08:54:08 mpi Exp $ */ /* * Copyright (c) 2019 - 2020 Martin Pieuchot <mpi@openbsd.org> @@ -662,7 +662,7 @@ stmt_clear(struct bt_stmt *bs) struct bt_var *bv = ba->ba_value; assert(bs->bs_var == NULL); - assert(ba->ba_type = B_AT_VAR); + assert(ba->ba_type == B_AT_VAR); map_clear(bv); @@ -726,7 +726,7 @@ stmt_print(struct bt_stmt *bs, struct dt_evt *dtev) size_t top = SIZE_T_MAX; assert(bs->bs_var == NULL); - assert(ba->ba_type = B_AT_VAR); + assert(ba->ba_type == B_AT_VAR); /* Parse optional `top' argument. */ btop = SLIST_NEXT(ba, ba_next); @@ -786,7 +786,7 @@ stmt_time(struct bt_stmt *bs, struct dt_evt *dtev) char buf[64]; assert(bs->bs_var == NULL); - assert(ba->ba_type = B_AT_STR); + assert(ba->ba_type == B_AT_STR); assert(strlen(ba2str(ba, dtev)) < (sizeof(buf) - 1)); time = builtin_gettime(dtev); @@ -802,7 +802,7 @@ stmt_zero(struct bt_stmt *bs) struct bt_var *bv = ba->ba_value; assert(bs->bs_var == NULL); - assert(ba->ba_type = B_AT_VAR); + assert(ba->ba_type == B_AT_VAR); map_zero(bv); |