Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net/agr constify.



details:   https://anonhg.NetBSD.org/src/rev/5c28e3cc11e8
branches:  trunk
changeset: 581391:5c28e3cc11e8
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Jun 01 11:25:01 2005 +0000

description:
constify.

diffstat:

 sys/net/agr/ieee8023ad_lacp_debug.c |  18 +++++++++---------
 sys/net/agr/ieee8023ad_lacp_debug.h |  16 ++++++++--------
 2 files changed, 17 insertions(+), 17 deletions(-)

diffs (113 lines):

diff -r 8298587e89fe -r 5c28e3cc11e8 sys/net/agr/ieee8023ad_lacp_debug.c
--- a/sys/net/agr/ieee8023ad_lacp_debug.c       Wed Jun 01 11:22:18 2005 +0000
+++ b/sys/net/agr/ieee8023ad_lacp_debug.c       Wed Jun 01 11:25:01 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee8023ad_lacp_debug.c,v 1.1 2005/03/18 11:11:50 yamt Exp $   */
+/*     $NetBSD: ieee8023ad_lacp_debug.c,v 1.2 2005/06/01 11:25:01 yamt Exp $   */
 
 /*-
  * Copyright (c)2005 YAMAMOTO Takashi,
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ieee8023ad_lacp_debug.c,v 1.1 2005/03/18 11:11:50 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee8023ad_lacp_debug.c,v 1.2 2005/06/01 11:25:01 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -47,7 +47,7 @@
 int lacpdebug = 0;
 #endif /* defined(LACP_DEBUG) */
 
-char *
+const char *
 lacp_format_mac(const uint8_t *mac, char *buf, size_t buflen)
 {
 
@@ -62,7 +62,7 @@
        return buf;
 }
 
-char *
+const char *
 lacp_format_systemid(const struct lacp_systemid *sysid,
     char *buf, size_t buflen)
 {
@@ -75,7 +75,7 @@
        return buf;
 }
 
-char *
+const char *
 lacp_format_portid(const struct lacp_portid *portid, char *buf, size_t buflen)
 {
 
@@ -86,7 +86,7 @@
        return buf;
 }
 
-char *
+const char *
 lacp_format_partner(const struct lacp_peerinfo *peer, char *buf, size_t buflen)
 {
        char sysid[LACP_SYSTEMIDSTR_MAX+1];
@@ -100,7 +100,7 @@
        return buf;
 }
 
-char *
+const char *
 lacp_format_lagid(const struct lacp_peerinfo *a,
     const struct lacp_peerinfo *b, char *buf, size_t buflen)
 {
@@ -129,7 +129,7 @@
        return buf;
 }
 
-char *
+const char *
 lacp_format_lagid_aggregator(const struct lacp_aggregator *la,
     char *buf, size_t buflen)
 {
@@ -141,7 +141,7 @@
        return lacp_format_lagid(&la->la_actor, &la->la_partner, buf, buflen);
 }
 
-char *
+const char *
 lacp_format_state(uint8_t state, char *buf, size_t buflen)
 {
        static const char lacp_state_bits[] = LACP_STATE_BITS;
diff -r 8298587e89fe -r 5c28e3cc11e8 sys/net/agr/ieee8023ad_lacp_debug.h
--- a/sys/net/agr/ieee8023ad_lacp_debug.h       Wed Jun 01 11:22:18 2005 +0000
+++ b/sys/net/agr/ieee8023ad_lacp_debug.h       Wed Jun 01 11:25:01 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee8023ad_lacp_debug.h,v 1.1 2005/03/18 11:11:50 yamt Exp $   */
+/*     $NetBSD: ieee8023ad_lacp_debug.h,v 1.2 2005/06/01 11:25:01 yamt Exp $   */
 
 /*-
  * Copyright (c)2005 YAMAMOTO Takashi,
@@ -47,15 +47,15 @@
 #define        LACP_STATESTR_MAX       (255) /* XXX */
 
 void lacp_dump_lacpdu(const struct lacpdu *);
-char *lacp_format_partner(const struct lacp_peerinfo *, char *, size_t);
-char *lacp_format_lagid(const struct lacp_peerinfo *,
+const char *lacp_format_partner(const struct lacp_peerinfo *, char *, size_t);
+const char *lacp_format_lagid(const struct lacp_peerinfo *,
     const struct lacp_peerinfo *, char *, size_t);
-char *lacp_format_lagid_aggregator(const struct lacp_aggregator *,
+const char *lacp_format_lagid_aggregator(const struct lacp_aggregator *,
     char *, size_t);
-char *lacp_format_state(uint8_t, char *, size_t);
-char *lacp_format_mac(const uint8_t *, char *, size_t);
-char *lacp_format_systemid(const struct lacp_systemid *, char *, size_t);
-char *lacp_format_portid(const struct lacp_portid *, char *, size_t);
+const char *lacp_format_state(uint8_t, char *, size_t);
+const char *lacp_format_mac(const uint8_t *, char *, size_t);
+const char *lacp_format_systemid(const struct lacp_systemid *, char *, size_t);
+const char *lacp_format_portid(const struct lacp_portid *, char *, size_t);
 
 #if defined(LACP_DEBUG)
 extern int lacpdebug;



Home | Main Index | Thread Index | Old Index