git: 904876790cc5 - stable/14 - net/if_dl.h: add param names in prototypes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 May 2025 21:52:59 UTC
The branch stable/14 has been updated by ivy:
URL: https://cgit.FreeBSD.org/src/commit/?id=904876790cc5cf86cdce3a2ca11541bae244d73b
commit 904876790cc5cf86cdce3a2ca11541bae244d73b
Author: Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-05-09 21:34:16 +0000
Commit: Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-05-20 21:49:52 +0000
net/if_dl.h: add param names in prototypes
previously these _KERNEL functions were inconsistent, with some having
parameter names and some not. fix this by giving them all names, per
style(9).
Reviewed by: thj, des
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D50219
(cherry picked from commit 8c7d193e3cbe3d1c9a7f7869f1748bebefabaccf)
---
sys/net/if_dl.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sys/net/if_dl.h b/sys/net/if_dl.h
index 80a5f452f024..5338f3a228d5 100644
--- a/sys/net/if_dl.h
+++ b/sys/net/if_dl.h
@@ -76,9 +76,10 @@ struct sockaddr_dl {
#ifdef _KERNEL
struct ifnet;
-struct sockaddr_dl *link_alloc_sdl(size_t, int);
+struct sockaddr_dl *link_alloc_sdl(size_t size, int flags);
void link_free_sdl(struct sockaddr *sa);
-struct sockaddr_dl *link_init_sdl(struct ifnet *, struct sockaddr *, u_char);
+struct sockaddr_dl *link_init_sdl(struct ifnet *ifp, struct sockaddr *paddr,
+ u_char iftypes);
#else /* !_KERNEL */