diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-02-21 12:05:11 +0100 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-02-22 16:04:16 +0100 |
| commit | c9662b47be711c00f013ac4606dc86c9a2ad8201 (patch) | |
| tree | 9a9d88cfd300dc27d6429b7341ceb5985c21f246 /src/ipcpd/unicast/dt.c | |
| parent | c3636005831064e71b03a5f8796a21e89b2a714f (diff) | |
| download | ouroboros-c9662b47be711c00f013ac4606dc86c9a2ad8201.tar.gz ouroboros-c9662b47be711c00f013ac4606dc86c9a2ad8201.zip | |
ipcpd: Fix unused values in unicast IPCP
Use the key in the store operation in the DHT, to avoid static
analyzer seeing it as being set without being used in release builds.
The length of the packet buffer is only used when tracking DT stats,
so should be set within the IPCP_FLOW_STATS guard.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast/dt.c')
| -rw-r--r-- | src/ipcpd/unicast/dt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/unicast/dt.c b/src/ipcpd/unicast/dt.c index 7ce09bde..252477f4 100644 --- a/src/ipcpd/unicast/dt.c +++ b/src/ipcpd/unicast/dt.c @@ -820,9 +820,9 @@ int dt_write_packet(uint64_t dst_addr, assert(spb); assert(dst_addr != dt.addr); +#ifdef IPCP_FLOW_STATS len = ssm_pk_buff_len(spb); -#ifdef IPCP_FLOW_STATS if (eid < PROG_RES_FDS) { pthread_mutex_lock(&dt.stat[eid].lock); |
