aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2025-05-21 13:46:09 -0700
committerPaolo Abeni <pabeni@redhat.com>2025-05-27 08:25:42 +0200
commited449ddbd867f2cc02d6890c231431f264a876eb (patch)
treef54014c1d04fb9dd082283423b7126d4763e6a31 /include
parentreplace strncpy with strscpy_pad (diff)
downloadwireguard-linux-ed449ddbd867f2cc02d6890c231431f264a876eb.tar.xz
wireguard-linux-ed449ddbd867f2cc02d6890c231431f264a876eb.zip
net: core: Convert inet_addr_is_any() to sockaddr_storage
All the callers of inet_addr_is_any() have a sockaddr_storage-backed sockaddr. Avoid casts and switch prototype to the actual object being used. Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> # SCSI Signed-off-by: Kees Cook <kees@kernel.org> Link: https://patch.msgid.link/20250521204619.2301870-1-kees@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/inet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/inet.h b/include/linux/inet.h
index bd8276e96e60..9158772f3559 100644
--- a/include/linux/inet.h
+++ b/include/linux/inet.h
@@ -55,6 +55,6 @@ extern int in6_pton(const char *src, int srclen, u8 *dst, int delim, const char
extern int inet_pton_with_scope(struct net *net, unsigned short af,
const char *src, const char *port, struct sockaddr_storage *addr);
-extern bool inet_addr_is_any(struct sockaddr *addr);
+bool inet_addr_is_any(struct sockaddr_storage *addr);
#endif /* _LINUX_INET_H */