From a732d68e8345b02e524d140479e86e72cb897493 Mon Sep 17 00:00:00 2001 From: Santiago Alessandri Date: Mon, 5 Mar 2012 09:28:39 -0300 Subject: [PATCH 1/2] Fixed warnings in ip.cpp --- src/ip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ip.cpp b/src/ip.cpp index a26a193..c675147 100644 --- a/src/ip.cpp +++ b/src/ip.cpp @@ -259,7 +259,7 @@ void Tins::IP::set_option(uint8_t copied, const Tins::IP::IPOption *Tins::IP::search_option(OptionClass opt_class, Option opt_number) const { for(std::list::const_iterator it = _ip_options.begin(); it != _ip_options.end(); ++it) { - if(it->type.op_class == opt_class && it->type.number == opt_number) + if(it->type.op_class == (uint8_t)opt_class && it->type.number == (uint8_t)opt_number) return &(*it); } return 0; From d42bb06a9ab34c62d16c0f349cc7bb6bb71fa706 Mon Sep 17 00:00:00 2001 From: Santiago Alessandri Date: Mon, 5 Mar 2012 11:18:37 -0300 Subject: [PATCH 2/2] Fixed Makefile --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index cf56f86..76351d9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -23,7 +23,8 @@ clean: rm $(OBJECTS) $(EXECUTABLE) install: - install include/* /usr/include/tins/ + install -d /usr/include/tins/ + install -t /usr/include/tins/ include/* install $(EXECUTABLE) /usr/lib/ uninstall: