diff options
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/utils.c | 2 | ||||
-rw-r--r-- | networking/libiproute/utils.h | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c index 7e74e1c4b..5e06656f6 100644 --- a/networking/libiproute/utils.c +++ b/networking/libiproute/utils.c @@ -259,7 +259,7 @@ void duparg2(char *key, char *arg) exit(-1); } -int matches(char *cmd, char *pattern) +int matches(const char *cmd, const char *pattern) { int len = strlen(cmd); diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h index c8ac63197..5af8ba744 100644 --- a/networking/libiproute/utils.h +++ b/networking/libiproute/utils.h @@ -43,8 +43,7 @@ typedef struct #define AF_DECnet 12 #endif -struct dn_naddr -{ +struct dn_naddr { unsigned short a_len; unsigned char a_addr[DN_MAXADDL]; }; @@ -79,7 +78,7 @@ extern const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int bufle void invarg(const char * const, const char * const) ATTRIBUTE_NORETURN; void duparg(char *, char *) ATTRIBUTE_NORETURN; void duparg2(char *, char *) ATTRIBUTE_NORETURN; -int matches(char *arg, char *pattern); +int matches(const char *arg, const char *pattern); extern int inet_addr_match(inet_prefix *a, inet_prefix *b, int bits); const char *dnet_ntop(int af, const void *addr, char *str, size_t len); |