libpcap: replace hand-rolled number parser with strtol
authorop <op@openbsd.org>
Wed, 28 Aug 2024 11:40:33 +0000 (11:40 +0000)
committerop <op@openbsd.org>
Wed, 28 Aug 2024 11:40:33 +0000 (11:40 +0000)
commitec5c1c0446e793215b7045834fd1cb71fc98ea5f
tree130bda1d8b814125260534a3fb1a88819355c3d9
parent78a26022dade46fc6b82c6dfc76169c1a4d0cf33
libpcap: replace hand-rolled number parser with strtol

can't use strtonum here since it needs to handle octal and hex
notations as well.  Part of a larger diff that's ok beck@
lib/libpcap/scanner.l