]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_aspath.c
2004-10-13 Paul Jakma <paul@dishone.st>
[mirror_frr.git] / bgpd / bgp_aspath.c
index bcb8f16f29397ae346b4753617ab85009fd7d514..5d4977510917cf597dbde57cbfe62c0ec5b2f42d 100644 (file)
@@ -993,10 +993,10 @@ enum as_token
 };
 
 /* Return next token and point for string parse. */
-char *
-aspath_gettoken (char *buf, enum as_token *token, u_short *asno)
+const char *
+aspath_gettoken (const char *buf, enum as_token *token, u_short *asno)
 {
-  char *p = buf;
+  const char *p = buf;
 
   /* Skip space. */
   while (isspace ((int) *p))
@@ -1055,7 +1055,7 @@ aspath_gettoken (char *buf, enum as_token *token, u_short *asno)
 }
 
 struct aspath *
-aspath_str2aspath (char *str)
+aspath_str2aspath (const char *str)
 {
   enum as_token token;
   u_short as_type;