tools/fib_multibind: Remove a redundant calculation

No functional change intended.

Reported by:	kevans
Fixes:		3fa5521498 ("tools: Add a small program to demonstrate FIB handling in bind(2)")
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
This commit is contained in:
Mark Johnston 2025-02-14 15:16:52 +00:00
parent 685fb42538
commit d46d45bf4b

View file

@ -158,7 +158,7 @@ main(int argc, char **argv)
sc.nfibs = 1;
}
sc.fds = calloc(all ? sc.nfibs : 1, sizeof(int));
sc.fds = calloc(sc.nfibs, sizeof(int));
if (sc.fds == NULL)
err(1, "calloc");
for (int i = 0; i < sc.nfibs; i++) {