X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Fstrmap.c;h=c6f1c01516f3c2453fd5abda44b3ef3a4e1f21f3;hp=6b4078bc747fe759c3741a0ffd7cf441d3612310;hb=c00bfddbf0f3608340d61298acc61dafb167f9b2;hpb=a66b7d79383ae700f3358731eecfe2aafed0e90d diff --git a/util/strmap.c b/util/strmap.c index 6b4078b..c6f1c01 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) 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