firewall3: create a common helper to find strings in files
authorRui Salvaterra <rsalvaterra@gmail.com>
Mon, 19 Oct 2020 15:51:16 +0000 (16:51 +0100)
committerRui Salvaterra <rsalvaterra@gmail.com>
Tue, 23 Mar 2021 09:18:33 +0000 (09:18 +0000)
commitedd0dc5829b4d948fb878d667e2135662d98e011
treea867a73dee8604d723bc5d00c548ffb4da2dd42c
parent61db17edddb1f05e8107f0dbef6f7d060ce67483
firewall3: create a common helper to find strings in files

Both fw3_has_table and fw3_has_target do the same thing. Factor out the common
code into a separate function.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
utils.c
utils.h