summaryrefslogtreecommitdiff
path: root/isisd/topology
diff options
context:
space:
mode:
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",