From c83dcd3f81ed21c72ad50e56a6c515c7eacac44c Mon Sep 17 00:00:00 2001 From: hasso Date: Sun, 26 Sep 2004 15:42:44 +0000 Subject: Compile with gcc-4.0. --- isisd/ChangeLog | 5 +++++ isisd/isis_lsp.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/isisd/ChangeLog b/isisd/ChangeLog index a9ea3cee..4b0659a0 100644 --- a/isisd/ChangeLog +++ b/isisd/ChangeLog @@ -1,3 +1,8 @@ +2004-09-26 Hasso Tepper + + * isis_lsp.h: Cast-as-lvalue extension is deprecated and is not + accpted any more in gcc-4.0. + 2004-09-24 Hasso Tepper * isisd.c: thread_master *master is already defined in isis_main.c. diff --git a/isisd/isis_lsp.h b/isisd/isis_lsp.h index d92175c4..67242f28 100644 --- a/isisd/isis_lsp.h +++ b/isisd/isis_lsp.h @@ -104,8 +104,8 @@ void lsp_purge_non_exist (struct isis_link_state_hdr *lsp_hdr, #define LSP_NEWER 2 #define LSP_OLDER 3 -#define LSP_PSEUDO_ID(I) ((u_char)(I)[ISIS_SYS_ID_LEN]) -#define LSP_FRAGMENT(I) ((u_char)(I)[ISIS_SYS_ID_LEN + 1]) +#define LSP_PSEUDO_ID(I) ((I)[ISIS_SYS_ID_LEN]) +#define LSP_FRAGMENT(I) ((I)[ISIS_SYS_ID_LEN + 1]) #define OWNLSPID(I) \ memcpy ((I), isis->sysid, ISIS_SYS_ID_LEN);\ (I)[ISIS_SYS_ID_LEN] = 0;\ -- cgit v1.2.1