git: 054468aa45d0 - stable/13 - net/if_dl.h: add param names in prototypes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 May 2025 00:30:12 UTC
The branch stable/13 has been updated by ivy:
URL: https://cgit.FreeBSD.org/src/commit/?id=054468aa45d0327f85832a7b3c13c083de0537fc
commit 054468aa45d0327f85832a7b3c13c083de0537fc
Author: Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-05-09 21:34:16 +0000
Commit: Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-05-20 22:11:59 +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 bdbefa39ade1..2c1e9bd9dd87 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 */