summaryrefslogtreecommitdiff
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorWang Liang <wangliang74@huawei.com>2025-08-12 09:59:29 +0800
committerJakub Kicinski <kuba@kernel.org>2025-08-13 17:05:21 -0700
commit4d18083d6b2c02e89d833c92c3fb79e2fe1e6795 (patch)
tree1c24b273363e6969196ca2a03dbd85d1cc0c8062 /rust/helpers/platform.c
parentb9970c4d2a34dee5ffd7c2937a631ade8c0a809d (diff)
vsock: use sizeof(struct sockaddr_storage) instead of magic value
Previous commit 230b183921ec ("net: Use standard structures for generic socket address structures.") use 'struct sockaddr_storage address;' to replace 'char address[MAX_SOCK_ADDR];'. The macro MAX_SOCK_ADDR is removed by commit 01893c82b4e6 ("net: Remove MAX_SOCK_ADDR constant"). The comment in vsock_getname() is outdated, use sizeof(struct sockaddr_storage) instead of magic value 128. Signed-off-by: Wang Liang <wangliang74@huawei.com> Link: https://patch.msgid.link/20250812015929.1419896-1-wangliang74@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions