missing include on linux

This commit is contained in:
Bernhard Amann 2012-03-22 13:09:53 -07:00
parent da13fe895e
commit 6c4a40f176
2 changed files with 3 additions and 2 deletions

View file

@ -1540,7 +1540,7 @@ int Manager::CopyValue(char *data, const int startpos, const Value* val) {
memcpy(data + startpos, (const char*) &(val->val.subnet_val.prefix.in.in4), length);
break;
case IPv6:
length += sizeof(val->val.addr_val.in.in6);
length = sizeof(val->val.addr_val.in.in6);
memcpy(data + startpos, (const char*) &(val->val.subnet_val.prefix.in.in4), length);
break;
default:

View file

@ -17,6 +17,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
using namespace input::reader;
using threading::Value;
@ -199,7 +200,7 @@ bool Raw::DoUpdate() {
case MANUAL:
case STREAM:
if ( mode == STREAM && file != NULL && in != NULL ) {
fpurge(file);
//fpurge(file);
in->clear(); // remove end of file evil bits
break;
}