c120ffb31d
Add `len` to store the result of `strlen(addr_arg)` to avoid multiple calls to `strlen` within the `for-loop` in `cmd_scan_filter_set_addr`. While the performance impact may be minimal in a shell context, storing `strlen(addr_arg)` in `len` ensures a single call, making the code more predictable and consistent. Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com> |
||
---|---|---|
.. | ||
classic | ||
shell | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.gatt | ||
Kconfig.l2cap | ||
addr.c | ||
addr_internal.h | ||
adv.c | ||
adv.h | ||
aes_ccm.c | ||
att.c | ||
att_internal.h | ||
buf.c | ||
buf_view.h | ||
conn.c | ||
conn_internal.h | ||
crypto.h | ||
crypto_psa.c | ||
crypto_tc.c | ||
cs.c | ||
data.c | ||
direction.c | ||
direction_internal.h | ||
ecc.c | ||
ecc.h | ||
gatt.c | ||
gatt_internal.h | ||
hci_common.c | ||
hci_core.c | ||
hci_core.h | ||
hci_ecc.c | ||
hci_ecc.h | ||
hci_raw.c | ||
hci_raw_internal.h | ||
id.c | ||
id.h | ||
iso.c | ||
iso_internal.h | ||
keys.c | ||
keys.h | ||
l2cap.c | ||
l2cap_internal.h | ||
long_wq.c | ||
long_wq.h | ||
monitor.c | ||
monitor.h | ||
scan.c | ||
scan.h | ||
settings.c | ||
settings.h | ||
smp.c | ||
smp.h | ||
smp_null.c | ||
uuid.c |