summaryrefslogtreecommitdiff
path: root/isisd/topology
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-12-08 01:09:50 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-12-08 01:09:50 +0000
commit41b36e9013111a6da812ca000e3b978282bd27a9 (patch)
tree11805d66de677613be7fe5e31626cfbbbbec78a6 /isisd/topology
parent3c0755dc9772deccff2ba6e9dc0511a9af2b9d1b (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/topology')
-rw-r--r--isisd/topology/random.c12
-rw-r--r--isisd/topology/spgrid.c9
2 files changed, 20 insertions, 1 deletions
diff --git a/isisd/topology/random.c b/isisd/topology/random.c
index 6ee17a0a..c49c0820 100644
--- a/isisd/topology/random.c
+++ b/isisd/topology/random.c
@@ -10,7 +10,17 @@
#include <sys/types.h>
#include <sys/times.h>
-unsigned long timer()
+/*
+ * Prototypes.
+ */
+unsigned long timer(void);
+void init_rand(long);
+double rand01(void);
+double randg01(void);
+long nrand(long);
+void free_arc(void *);
+
+unsigned long timer ()
{ struct tms hold;
times(&hold);
diff --git a/isisd/topology/spgrid.c b/isisd/topology/spgrid.c
index a1aa6d77..611b6727 100644
--- a/isisd/topology/spgrid.c
+++ b/isisd/topology/spgrid.c
@@ -26,6 +26,15 @@
#define NODE( x, y ) (x*Y + y + 1)
+/*
+ * Prototypes.
+ */
+void free_arc(void *);
+void help(struct vty *);
+void print_arc(struct vty *, struct list *, long, long, long);
+void hhelp(struct vty *);
+void usage(struct vty *);
+
const char *graph_type[] = {
"double cycle",
"cycle",