diff options
author | Jeffrey C. Ollie <jeff@ocjtech.us> | 2007-04-09 15:36:33 -0500 |
---|---|---|
committer | Jeffrey C. Ollie <jeff@ocjtech.us> | 2007-04-09 15:36:33 -0500 |
commit | 37e11172f8ed157340783b73d56595bb02d0a2d2 (patch) | |
tree | 65163a9cdb8ded9c55c94da92e8a6327bda9067c /isisd/isis_misc.c | |
parent | 8d3e3ccfd0d0cb82b253f937339d1c6189a2bf54 (diff) | |
parent | 43cd33a44e010f818633b7f144b5a0be352b41e7 (diff) | |
download | quagga-0.99.6-realms.patch.tar.bz2 quagga-0.99.6-realms.patch.tar.xz |
Merge commit 'quagga_0_99_6_release' into linux-realmsquagga-0.99.6-realms.patch
Diffstat (limited to 'isisd/isis_misc.c')
-rw-r--r-- | isisd/isis_misc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/isisd/isis_misc.c b/isisd/isis_misc.c index 384ebe0b..6b565bcb 100644 --- a/isisd/isis_misc.c +++ b/isisd/isis_misc.c @@ -99,15 +99,15 @@ isonet_print (u_char * from, int len) * extract dot from the dotted str, and insert all the number in a buff */ int -dotformat2buff (u_char * buff, u_char * dotted) +dotformat2buff (u_char * buff, const u_char * dotted) { int dotlen, len = 0; - u_char *pos = dotted; + const u_char *pos = dotted; u_char number[3]; int nextdotpos = 2; number[2] = '\0'; - dotlen = strlen ((char *)dotted); + dotlen = strlen(dotted); if (dotlen > 50) { /* this can't be an iso net, its too long */ @@ -165,7 +165,7 @@ sysid2buff (u_char * buff, const u_char * dotted) number[2] = '\0'; // surely not a sysid_string if not 14 length - if (strlen ((char *)dotted) != 14) + if (strlen (dotted) != 14) { return 0; } @@ -271,19 +271,19 @@ speaks (struct nlpids *nlpids, int family) * Returns 0 on error, IS-IS Circuit Type on ok */ int -string2circuit_t (u_char * str) +string2circuit_t (const u_char * str) { if (!str) return 0; - if (!strcmp ((char *)str, "level-1")) + if (!strcmp (str, "level-1")) return IS_LEVEL_1; - if (!strcmp ((char *)str, "level-2-only") || !strcmp ((char *)str, "level-2")) + if (!strcmp (str, "level-2-only") || !strcmp (str, "level-2")) return IS_LEVEL_2; - if (!strcmp ((char *)str, "level-1-2")) + if (!strcmp (str, "level-1-2")) return IS_LEVEL_1_AND_2; return 0; |