提交 ef2aac95 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@9 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 96300781
...@@ -29,17 +29,11 @@ ...@@ -29,17 +29,11 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
CC=gcc
OBJS=hashtable.o hashtable_itr.o openzap.o zap_config.o OBJS=hashtable.o hashtable_itr.o openzap.o zap_config.o
CFLAGS=$(USER_CFLAGS) -Iinclude -Wall -Werror -Wextra -std=c99 -pedantic -ansi CFLAGS=$(ZAP_CFLAGS) -Iinclude
MYLIB=libopenzap.a MYLIB=libopenzap.a
CFLAGS +=-DZAP_WANPIPE_SUPPORT include general.makefile $(ZAP_MODS)
OBJS += zap_wanpipe.o
#CFLAGS +=-DZAP_ZT_SUPPORT
#OBJS += zap_zt.o
$(MYLIB): $(OBJS) $(MYLIB): $(OBJS)
ar rcs $(MYLIB) $(OBJS) ar rcs $(MYLIB) $(OBJS)
......
CC=gcc
CFLAGS += -Wall -Werror -Wextra -std=c99 -pedantic -ansi
...@@ -25,7 +25,7 @@ struct hashtable { ...@@ -25,7 +25,7 @@ struct hashtable {
/*****************************************************************************/ /*****************************************************************************/
unsigned int unsigned int
hash(struct hashtable *h, void *k); hash(struct hashtable *h, const void *k);
/*****************************************************************************/ /*****************************************************************************/
/* indexFor */ /* indexFor */
......
...@@ -228,17 +228,17 @@ zap_status_t zap_global_init(void) ...@@ -228,17 +228,17 @@ zap_status_t zap_global_init(void)
zap_config_t cfg; zap_config_t cfg;
char *var, *val; char *var, *val;
unsigned configured = 0; unsigned configured = 0;
zap_software_interface_t *zint = NULL; zap_software_interface_t *zint;
zint, 0;
globals.interface_hash = create_hashtable(16, hashfromstring, equalkeys); globals.interface_hash = create_hashtable(16, hashfromstring, equalkeys);
zint = NULL;
#ifdef ZAP_WANPIPE_SUPPORT #ifdef ZAP_WANPIPE_SUPPORT
if (wanpipe_init(&zint) == ZAP_SUCCESS) { if (wanpipe_init(&zint) == ZAP_SUCCESS) {
hashtable_insert(globals.interface_hash, (void *)zint->name, zint); hashtable_insert(globals.interface_hash, (void *)zint->name, zint);
} }
#endif #endif
zint = NULL;
#ifdef ZAP_ZT_SUPPORT #ifdef ZAP_ZT_SUPPORT
if (zt_init(&zint) == ZAP_SUCCESS) { if (zt_init(&zint) == ZAP_SUCCESS) {
hashtable_insert(globals.interface_hash, (void *)zint->name, zint); hashtable_insert(globals.interface_hash, (void *)zint->name, zint);
......
CFLAGS +=-DZAP_WANPIPE_SUPPORT
OBJS += zap_wanpipe.o
CFLAGS +=-DZAP_ZT_SUPPORT
OBJS += zap_zt.o
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论