ndppd: remove unused variables

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Daniel Adolfsson <daniel@priv.nu>
This commit is contained in:
Jiri Kosina 2012-03-07 23:29:40 +01:00 committed by Daniel Adolfsson
parent 8ee4758b41
commit fe5fe8e894
4 changed files with 1 additions and 8 deletions

View File

@ -194,7 +194,7 @@ const std::string address::to_string() const
bool address::parse_string(const std::string& str)
{
char buf[INET6_ADDRSTRLEN],* b;
int sz, pfx;
int sz;
sz = 0;
b = buf;

View File

@ -216,8 +216,6 @@ void conf::dump(int pri) const
void conf::dump(logger& l, int level) const
{
int i;
std::string pfx;
for (int i = 0; i < level; i++) {
pfx += " ";

View File

@ -282,7 +282,6 @@ ssize_t iface::read(int fd, struct sockaddr* saddr, uint8_t* msg, size_t size)
{
struct msghdr mhdr;
struct iovec iov;
char cbuf[256];
int len;
if (!msg || (size < 0))
@ -350,9 +349,6 @@ ssize_t iface::read_solicit(address& saddr, address& daddr, address& taddr)
struct ip6_hdr* ip6h =
(struct ip6_hdr* )(msg + ETH_HLEN);
struct icmp6_hdr* icmph =
(struct icmp6_hdr* )(msg + ETH_HLEN + sizeof( struct ip6_hdr));
struct nd_neighbor_solicit* ns =
(struct nd_neighbor_solicit* )(msg + ETH_HLEN + sizeof( struct ip6_hdr));

View File

@ -117,7 +117,6 @@ protected:
template <class U>
void acquire(const ptr<U>& ptr)
{
T* t = static_cast<U* >(0);
acquire(ptr._ref);
}