X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Fstrmap.c;h=05d688633a1d889de5c8a179dd8dd405e49b605d;hp=6b4078bc747fe759c3741a0ffd7cf441d3612310;hb=def2cb6b3757af34ca257b9f93b22868f40ceebb;hpb=a66b7d79383ae700f3358731eecfe2aafed0e90d diff --git a/util/strmap.c b/util/strmap.c index 6b4078b..05d6886 100644 --- a/util/strmap.c +++ b/util/strmap.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2010 Index Data + Copyright (C) 2004-2013 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -29,7 +32,7 @@ struct strmap_entry { void *data_buf; struct strmap_entry *next; }; - + struct zebra_strmap { NMEM nmem_str; NMEM nmem_ent; @@ -139,7 +142,7 @@ struct zebra_strmap_it_s { int hno; struct strmap_entry *ent; zebra_strmap_t st; - + }; zebra_strmap_it zebra_strmap_it_create(zebra_strmap_t st) @@ -180,7 +183,7 @@ const char *zebra_strmap_it_next(zebra_strmap_it it, void **data_buf, } return 0; } - + /* * Local variables: * c-basic-offset: 4