diff --git a/ChangeLog b/ChangeLog index a702704..0777e1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-11-03 Matthias Wimmer + + * database.cc: adding missing include + 2011-10-30 Matthias Wimmer * timestore.cc: encapsulate parsing of database values diff --git a/configure.ac b/configure.ac index 1e0e549..2a86693 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ AC_PREREQ(2.61) AC_INIT(couriergrey.h) AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE(couriergrey,0.3.0) +AM_INIT_AUTOMAKE(couriergrey,0.3.0.1) AM_CONFIG_HEADER(config.h) AC_LANG(C++) AC_GNU_SOURCE diff --git a/database.cc b/database.cc index 8954684..00af74b 100644 --- a/database.cc +++ b/database.cc @@ -26,6 +26,7 @@ #include #include #include +#include #include namespace couriergrey { @@ -94,7 +95,7 @@ namespace couriergrey { for (::datum key = ::gdbm_firstkey(db); key.dptr; key = ::gdbm_nextkey(db, key)) { try { result.push_back(std::string(key.dptr, key.dsize)); - } catch (std::length_error) { + } catch (std::length_error len_err) { std::cerr << "Length error!" << std::endl; std::cerr << "Lenght is: " << key.dsize << std::endl; std::cerr << "Key is: " << key.dptr << std::endl;