From: Adam Dickmeiss Date: Tue, 2 Aug 2011 08:07:37 +0000 (+0200) Subject: Int casts (Odr_int stuff) X-Git-Tag: v1.3.5~7 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=5d21a3cf208a7bc9951846dab4b8b6ff97b46863;p=metaproxy-moved-to-github.git Int casts (Odr_int stuff) --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index 271ec9a..2c70e94 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -53,7 +53,8 @@ namespace yf = mp::filter; namespace metaproxy_1 { namespace filter { - struct Zoom::Searchable : boost::noncopyable { + class Zoom::Searchable : boost::noncopyable { + public: std::string authentication; std::string cfAuth; std::string cfProxy; @@ -370,7 +371,7 @@ yf::Zoom::Impl::Impl() : { bibset = ccl_qual_mk(); - srand(time(0)); + srand((unsigned int) time(0)); } yf::Zoom::Impl::~Impl() @@ -927,7 +928,7 @@ Z_Records *yf::Zoom::Frontend::get_records(Odr_int start, number_to_present = 10000; ZOOM_record *recs = (ZOOM_record *) - odr_malloc(odr, number_to_present * sizeof(*recs)); + odr_malloc(odr, (size_t) number_to_present * sizeof(*recs)); char oid_name_str[OID_STR_MAX]; const char *syntax_name = 0; @@ -976,7 +977,7 @@ Z_Records *yf::Zoom::Frontend::get_records(Odr_int start, b->present(start, number_to_present, recs, error, addinfo, odr); - Odr_int i = 0; + int i = 0; if (!*error) { for (i = 0; i < number_to_present; i++)