The branch main has been updated by glebius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=b5c1f7d479de02f2c886b7453adbea312418ee7a

commit b5c1f7d479de02f2c886b7453adbea312418ee7a
Author:     Gleb Smirnoff <gleb...@freebsd.org>
AuthorDate: 2025-01-06 16:22:15 +0000
Commit:     Gleb Smirnoff <gleb...@freebsd.org>
CommitDate: 2025-01-06 16:22:15 +0000

    xdr: use C99 initializers for xdr_ops
    
    No functional change.
---
 sys/xdr/xdr_mbuf.c | 16 ++++++++--------
 sys/xdr/xdr_mem.c  | 36 ++++++++++++++++++------------------
 2 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/sys/xdr/xdr_mbuf.c b/sys/xdr/xdr_mbuf.c
index 0ed807de903e..896e317f5526 100644
--- a/sys/xdr/xdr_mbuf.c
+++ b/sys/xdr/xdr_mbuf.c
@@ -46,14 +46,14 @@ static bool_t xdrmbuf_setpos(XDR *, u_int);
 static int32_t *xdrmbuf_inline(XDR *, u_int);
 
 static const struct    xdr_ops xdrmbuf_ops = {
-       xdrmbuf_getlong,
-       xdrmbuf_putlong,
-       xdrmbuf_getbytes,
-       xdrmbuf_putbytes,
-       xdrmbuf_getpos,
-       xdrmbuf_setpos,
-       xdrmbuf_inline,
-       xdrmbuf_destroy
+       .x_getlong =    xdrmbuf_getlong,
+       .x_putlong =    xdrmbuf_putlong,
+       .x_getbytes =   xdrmbuf_getbytes,
+       .x_putbytes =   xdrmbuf_putbytes,
+       .x_getpostn =   xdrmbuf_getpos,
+       .x_setpostn =   xdrmbuf_setpos,
+       .x_inline =     xdrmbuf_inline,
+       .x_destroy =    xdrmbuf_destroy,
 };
 
 /*
diff --git a/sys/xdr/xdr_mem.c b/sys/xdr/xdr_mem.c
index 1489aadf53a0..65a74836b7b3 100644
--- a/sys/xdr/xdr_mem.c
+++ b/sys/xdr/xdr_mem.c
@@ -63,27 +63,27 @@ static int32_t *xdrmem_inline_unaligned(XDR *, u_int);
 static bool_t xdrmem_control(XDR *xdrs, int request, void *info);
 
 static const struct    xdr_ops xdrmem_ops_aligned = {
-       xdrmem_getlong_aligned,
-       xdrmem_putlong_aligned,
-       xdrmem_getbytes,
-       xdrmem_putbytes,
-       xdrmem_getpos,
-       xdrmem_setpos,
-       xdrmem_inline_aligned,
-       xdrmem_destroy,
-       xdrmem_control
+       .x_getlong =    xdrmem_getlong_aligned,
+       .x_putlong =    xdrmem_putlong_aligned,
+       .x_getbytes =   xdrmem_getbytes,
+       .x_putbytes =   xdrmem_putbytes,
+       .x_getpostn =   xdrmem_getpos,
+       .x_setpostn =   xdrmem_setpos,
+       .x_inline =     xdrmem_inline_aligned,
+       .x_destroy =    xdrmem_destroy,
+       .x_control =    xdrmem_control,
 };
 
 static const struct    xdr_ops xdrmem_ops_unaligned = {
-       xdrmem_getlong_unaligned,
-       xdrmem_putlong_unaligned,
-       xdrmem_getbytes,
-       xdrmem_putbytes,
-       xdrmem_getpos,
-       xdrmem_setpos,
-       xdrmem_inline_unaligned,
-       xdrmem_destroy,
-       xdrmem_control
+       .x_getlong =    xdrmem_getlong_unaligned,
+       .x_putlong =    xdrmem_putlong_unaligned,
+       .x_getbytes =   xdrmem_getbytes,
+       .x_putbytes =   xdrmem_putbytes,
+       .x_getpostn =   xdrmem_getpos,
+       .x_setpostn =   xdrmem_setpos,
+       .x_inline =     xdrmem_inline_unaligned,
+       .x_destroy =    xdrmem_destroy,
+       .x_control =    xdrmem_control
 };
 
 /*

Reply via email to