]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Constify some arguments.
authorGuy Harris <[email protected]>
Fri, 14 Oct 2011 04:49:18 +0000 (21:49 -0700)
committerGuy Harris <[email protected]>
Fri, 14 Oct 2011 04:49:18 +0000 (21:49 -0700)
ospf.h
print-ospf.c

diff --git a/ospf.h b/ospf.h
index 2b1c6ee4c6b749b9b59ba5d1f163ec1e56649039..b86458baa7eea9f7e8ec3387503e3503261c489f 100644 (file)
--- a/ospf.h
+++ b/ospf.h
@@ -324,5 +324,5 @@ struct ospfhdr {
 #define        ospf_lsa        ospf_un.un_lsa
 
 /* Functions shared by ospf and ospf6 */
-extern int ospf_print_te_lsa(u_int8_t *, u_int);
-extern int ospf_print_grace_lsa(u_int8_t *, u_int);
+extern int ospf_print_te_lsa(const u_int8_t *, u_int);
+extern int ospf_print_grace_lsa(const u_int8_t *, u_int);
index 738a13c279244a45ed3c2e21903681555cfe98cf..f8ff4aeac5b0d770ca4f72a99321e623b062f82d 100644 (file)
@@ -197,7 +197,7 @@ static int ospf_decode_v2(const struct ospfhdr *, const u_char *);
 static int ospf_decode_lls(const struct ospfhdr *, register u_int);
 
 int
-ospf_print_grace_lsa (u_int8_t *tptr, u_int ls_length) {
+ospf_print_grace_lsa (const u_int8_t *tptr, u_int ls_length) {
 
     u_int tlv_type, tlv_length;
 
@@ -279,7 +279,7 @@ trunc:
 }
 
 int
-ospf_print_te_lsa (u_int8_t *tptr, u_int ls_length) {
+ospf_print_te_lsa (const u_int8_t *tptr, u_int ls_length) {
 
     u_int tlv_type, tlv_length, subtlv_type, subtlv_length;
     u_int priority_level, te_class, count_srlg;