summaryrefslogtreecommitdiff
path: root/isisd
diff options
context:
space:
mode:
authorhasso <hasso>2004-09-24 10:45:28 +0000
committerhasso <hasso>2004-09-24 10:45:28 +0000
commit73d1aeada73abf3ca803aea074a1da5c264bf86e (patch)
tree3abea0ade03efc70d7d0b9892543cf1bf41edba7 /isisd
parent26f7a244d0f7e6a658cc48b88613b6919a6f5fbe (diff)
* isisd.c: thread_master *master is already defined in isis_main.c.
* isis_misc.[c|h], isis_lsp.[c|h]: Move static variables out of header files.
Diffstat (limited to 'isisd')
-rw-r--r--isisd/ChangeLog6
-rw-r--r--isisd/isis_lsp.c3
-rw-r--r--isisd/isis_lsp.h3
-rw-r--r--isisd/isis_misc.c15
-rw-r--r--isisd/isis_misc.h15
-rw-r--r--isisd/isisd.c2
6 files changed, 25 insertions, 19 deletions
diff --git a/isisd/ChangeLog b/isisd/ChangeLog
index 50028a91..a9ea3cee 100644
--- a/isisd/ChangeLog
+++ b/isisd/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-24 Hasso Tepper <hasso at quagga.net>
+
+ * isisd.c: thread_master *master is already defined in isis_main.c.
+ * isis_misc.[c|h], isis_lsp.[c|h]: Move static variables out of
+ header files.
+
2004-09-23 Hasso Tepper <hasso at quagga.net>
* *.[c|h]: list -> struct list *, listnode -> struct listnode *.
diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c
index d0764e04..5467b483 100644
--- a/isisd/isis_lsp.c
+++ b/isisd/isis_lsp.c
@@ -60,6 +60,9 @@
extern struct isis *isis;
extern struct thread_master *master;
+/* staticly assigned vars for printing purposes */
+char lsp_bits_string[200]; /* FIXME: enough ? */
+
int
lsp_id_cmp (u_char * id1, u_char * id2)
{
diff --git a/isisd/isis_lsp.h b/isisd/isis_lsp.h
index c6eb7c27..d92175c4 100644
--- a/isisd/isis_lsp.h
+++ b/isisd/isis_lsp.h
@@ -120,9 +120,6 @@ int lsp_print_all (struct vty *vty, dict_t * lspdb, char detail,
char dynhost);
char *lsp_bits2string (u_char *);
-/* staticly assigned vars for printing purposes */
-char lsp_bits_string[200]; /* FIXME: enough ? */
-
#ifdef TOPOLOGY_GENERATE
void generate_topology_lsps (struct isis_area *area);
void remove_topology_lsps (struct isis_area *area);
diff --git a/isisd/isis_misc.c b/isisd/isis_misc.c
index 7fe5286f..51c4d929 100644
--- a/isisd/isis_misc.c
+++ b/isisd/isis_misc.c
@@ -46,6 +46,21 @@
#include "isisd/isis_constants.h"
#include "isisd/isis_adjacency.h"
+/* staticly assigned vars for printing purposes */
+struct in_addr new_prefix;
+/* len of xxxx.xxxx.xxxx + place for #0 termination */
+char sysid[15];
+/* len of xxxx.xxxx.xxxx + place for #0 termination */
+char snpa[15];
+/* len of xx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xx */
+char isonet[51];
+/* + place for #0 termination */
+/* len of xxxx.xxxx.xxxx.xx.xx + place for #0 termination */
+char lspid[21];
+/* len of xxYxxMxWxdxxhxxmxxs + place for #0 termination */
+char datestring[20];
+char nlpidstring[30];
+
/*
* This converts the isonet to its printable format
*/
diff --git a/isisd/isis_misc.h b/isisd/isis_misc.h
index 75c8d8b4..330556a6 100644
--- a/isisd/isis_misc.h
+++ b/isisd/isis_misc.h
@@ -60,21 +60,6 @@ const char *unix_hostname (void);
*/
#define GETSYSID(A,L) (A->area_addr + (A->addr_len - (L + 1)))
-/* staticly assigned vars for printing purposes */
-struct in_addr new_prefix;
-/* len of xxxx.xxxx.xxxx + place for #0 termination */
-char sysid[15];
-/* len of xxxx.xxxx.xxxx + place for #0 termination */
-char snpa[15];
-/* len of xx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xx */
-char isonet[51];
-/* + place for #0 termination */
-/* len of xxxx.xxxx.xxxx.xx.xx + place for #0 termination */
-char lspid[21];
-/* len of xxYxxMxWxdxxhxxmxxs + place for #0 termination */
-char datestring[20];
-char nlpidstring[30];
-
/* used for calculating nice string representation instead of plain seconds */
#define SECS_PER_MINUTE 60
diff --git a/isisd/isisd.c b/isisd/isisd.c
index 3fbed0be..af05cd15 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -60,7 +60,7 @@ u_char DEFAULT_TOPOLOGY_BASEIS[6] = { 0xFE, 0xED, 0xFE, 0xED, 0x00, 0x00 };
#endif /* TOPOLOGY_GENERATE */
struct isis *isis = NULL;
-struct thread_master *master;
+extern struct thread_master *master;
void
isis_new (unsigned long process_id)