aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2025-09-17 08:41:42 +0200
committerStefano Brivio <sbrivio@redhat.com>2025-09-18 17:11:36 +0200
commit6f23cb9fdb59a8369780c19a06c0739e1c2c8c09 (patch)
treed9fbd639652c6989a299c176ccb4b833bbaa81fa
parent1f22fde93466005d803bf2fb1b17147b877fb7ed (diff)
downloadpasst-6f23cb9fdb59a8369780c19a06c0739e1c2c8c09.tar
passt-6f23cb9fdb59a8369780c19a06c0739e1c2c8c09.tar.gz
passt-6f23cb9fdb59a8369780c19a06c0739e1c2c8c09.tar.bz2
passt-6f23cb9fdb59a8369780c19a06c0739e1c2c8c09.tar.lz
passt-6f23cb9fdb59a8369780c19a06c0739e1c2c8c09.tar.xz
passt-6f23cb9fdb59a8369780c19a06c0739e1c2c8c09.tar.zst
passt-6f23cb9fdb59a8369780c19a06c0739e1c2c8c09.zip
dhcp: Fix coding style violations in dhcp() function
The dhcp() function wasn't following the inverted Christmas tree variable declaration ordering convention. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp.c b/dhcp.c
index 012cec6..6b9c2e3 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -311,10 +311,10 @@ int dhcp(const struct ctx *c, struct iov_tail *data)
const struct ethhdr *eh;
const struct iphdr *iph;
const struct udphdr *uh;
+ struct msg m_storage;
struct msg const *m;
struct msg reply;
unsigned int i;
- struct msg m_storage;
eh = IOV_REMOVE_HEADER(data, eh_storage);
iph = IOV_PEEK_HEADER(data, iph_storage);