ipf(1): Use strchr(3) instead of deprecated index(3)
Reviewed by: cy MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2607
This commit is contained in:
parent
1c73ea3ef8
commit
8d121298ba
@ -296,7 +296,7 @@ static void packetlogon(opt)
|
||||
printf("set log flag: nomatch\n");
|
||||
change = 1;
|
||||
}
|
||||
if (strstr(opt, "block") || index(opt, 'd')) {
|
||||
if (strstr(opt, "block") || strchr(opt, 'd')) {
|
||||
flag |= FF_LOGBLOCK;
|
||||
if (opts & OPT_VERBOSE)
|
||||
printf("set log flag: block\n");
|
||||
|
Loading…
Reference in New Issue
Block a user