Skip to content

Commit

Permalink
Polish: Consistent use of sizeof in SML_allocobj()
Browse files Browse the repository at this point in the history
There are two sizeof calls here with the same semantics, make them the
same.
  • Loading branch information
nigoroll committed Dec 31, 2023
1 parent 610d177 commit 5752421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/varnishd/storage/storage_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ SML_allocobj(struct worker *wrk, const struct stevedore *stv,

AN(stv->sml_alloc);

ltot = sizeof(struct object) + PRNDUP(wsl);
ltot = sizeof(*o) + PRNDUP(wsl);

do {
st = stv->sml_alloc(stv, ltot);
Expand Down

0 comments on commit 5752421

Please sign in to comment.