aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2025-04-02 14:13:16 +1100
committerStefano Brivio <sbrivio@redhat.com>2025-04-02 08:28:05 +0200
commit2ed2d59def758b049f42e7c75bfb48957a73bd39 (patch)
tree967d00d23ea974bff08b6b21ead0c574131239be
parent3de5af6e4145c6971be2597d7fb0386332d44a45 (diff)
downloadpasst-2ed2d59def758b049f42e7c75bfb48957a73bd39.tar
passt-2ed2d59def758b049f42e7c75bfb48957a73bd39.tar.gz
passt-2ed2d59def758b049f42e7c75bfb48957a73bd39.tar.bz2
passt-2ed2d59def758b049f42e7c75bfb48957a73bd39.tar.lz
passt-2ed2d59def758b049f42e7c75bfb48957a73bd39.tar.xz
passt-2ed2d59def758b049f42e7c75bfb48957a73bd39.tar.zst
passt-2ed2d59def758b049f42e7c75bfb48957a73bd39.zip
platform requirements: Fix clang-tidy warning
Recent clang-tidy versions complain about enums defined with some but not all entries given explicit values. I'm not entirely convinced about whether that's a useful warning, but in any case we really don't need the explicit values in doc/platform-requirements/reuseaddr-priority.c, so remove them to make clang happy. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--doc/platform-requirements/reuseaddr-priority.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/platform-requirements/reuseaddr-priority.c b/doc/platform-requirements/reuseaddr-priority.c
index 701b6ff..af39a39 100644
--- a/doc/platform-requirements/reuseaddr-priority.c
+++ b/doc/platform-requirements/reuseaddr-priority.c
@@ -46,13 +46,13 @@
/* Different cases for receiving socket configuration */
enum sock_type {
/* Socket is bound to 0.0.0.0:DSTPORT and not connected */
- SOCK_BOUND_ANY = 0,
+ SOCK_BOUND_ANY,
/* Socket is bound to 127.0.0.1:DSTPORT and not connected */
- SOCK_BOUND_LO = 1,
+ SOCK_BOUND_LO,
/* Socket is bound to 0.0.0.0:DSTPORT and connected to 127.0.0.1:SRCPORT */
- SOCK_CONNECTED = 2,
+ SOCK_CONNECTED,
NUM_SOCK_TYPES,
};