mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
CLEANUP: cache: use ASSUME_NONNULL() instead of DISGUISE()
DISGUISE() was used to avoid a NULL warning. Using ASSUME_NONNULL() instead makes it clearer and made the function slightly shorter.
This commit is contained in:
parent
7b6acb6a51
commit
29b2c5d4d4
@ -820,8 +820,7 @@ cache_store_http_payload(struct stream *s, struct filter *filter, struct http_ms
|
|||||||
goto no_cache;
|
goto no_cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* disguise below to shut a warning on */
|
ASSUME_NONNULL((struct cache_entry *)st->first_block->data)->body_size += data_len;
|
||||||
DISGUISE((struct cache_entry *)st->first_block->data)->body_size += data_len;
|
|
||||||
ret = shctx_row_data_append(shctx, st->first_block,
|
ret = shctx_row_data_append(shctx, st->first_block,
|
||||||
(unsigned char *)b_head(&trash), b_data(&trash));
|
(unsigned char *)b_head(&trash), b_data(&trash));
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user