From d84c5c7b31467be031b38182640028dcb7c3a090 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 29 Apr 2009 17:36:13 +0200 Subject: [PATCH] As per POSIX, unconstify if_name in . --- sys/net/if.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if.h b/sys/net/if.h index e6afa18040..7830c2dc81 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -335,8 +335,8 @@ struct if_laddrreq { #ifndef _KERNEL struct if_nameindex { - u_int if_index; /* 1, 2, ... */ - const char *if_name; /* null terminated name: "le0", ... */ + u_int if_index; /* 1, 2, ... */ + char *if_name; /* null terminated name: "le0", ... */ }; __BEGIN_DECLS -- 2.41.0