diff options
author | Paul Jakma <paul.jakma@sun.com> | 2006-12-08 01:09:50 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2006-12-08 01:09:50 +0000 |
commit | 41b36e9013111a6da812ca000e3b978282bd27a9 (patch) | |
tree | 11805d66de677613be7fe5e31626cfbbbbec78a6 /isisd/isis_misc.h | |
parent | 3c0755dc9772deccff2ba6e9dc0511a9af2b9d1b (diff) |
[isisd] Fix compiler warnings and allow v4-only compilation
2006-12-08 Hannes Gredler <hannes@gredler.at>
* isis_adjacency.c: (isis_new_adj) Allow NULL snpa argument.
* isis_pdu.c: (various) Update calls to isis_new_adj() to pass
NULL and use default.
* (general) Add forward declarations where required.
Fix up const char *'s.
Allow V4-only compilation.
Diffstat (limited to 'isisd/isis_misc.h')
-rw-r--r-- | isisd/isis_misc.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/isisd/isis_misc.h b/isisd/isis_misc.h index 3b975895..d5003a8e 100644 --- a/isisd/isis_misc.h +++ b/isisd/isis_misc.h @@ -24,8 +24,7 @@ #ifndef _ZEBRA_ISIS_MISC_H #define _ZEBRA_ISIS_MISC_H -int dotformat2buff (u_char *, u_char *); -int string2circuit_t (u_char *); +int string2circuit_t (const u_char *); const char *circuit_t2string (int); const char *syst2string (int); struct in_addr newprefix2inaddr (u_char * prefix_start, @@ -34,7 +33,7 @@ struct in_addr newprefix2inaddr (u_char * prefix_start, * Converting input to memory stored format * return value of 0 indicates wrong input */ -int dotformat2buff (u_char *, u_char *); +int dotformat2buff (u_char *, const u_char *); int sysid2buff (u_char *, const u_char *); /* |