net/tcpview: Fix build with LLVM15
(cherry picked from commit 57a30ab234a9771eb5a4f50a54f8aaba7cd62a91)