fix merge
This commit is contained in:
parent
42c6d90339
commit
fd550c13ab
|
@ -663,11 +663,7 @@ sub Dump {
|
||||||
|
|
||||||
sub debug {
|
sub debug {
|
||||||
my $log = shift;
|
my $log = shift;
|
||||||
<<<<<<< HEAD
|
|
||||||
$log->logPrint(DEBUG, @_);
|
|
||||||
=======
|
|
||||||
$log->logPrint(DEBUG, @_, caller);
|
$log->logPrint(DEBUG, @_, caller);
|
||||||
>>>>>>> storageareas
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub Debug( @ ) {
|
sub Debug( @ ) {
|
||||||
|
|
|
@ -117,9 +117,8 @@ public:
|
||||||
|
|
||||||
virtual int PrimeCapture() { return 0; }
|
virtual int PrimeCapture() { return 0; }
|
||||||
virtual int PreCapture() = 0;
|
virtual int PreCapture() = 0;
|
||||||
virtual int Capture(Image &image) = 0;
|
virtual int Capture(ZMPacket &p)=0;
|
||||||
virtual int PostCapture() = 0;
|
virtual int PostCapture() = 0;
|
||||||
virtual int CaptureAndRecord(Image &image, timeval recording, char* event_directory) = 0;
|
|
||||||
virtual int Close() = 0;
|
virtual int Close() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -146,14 +146,9 @@ Event::Event(
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if ( mkdir(path.c_str(), 0755) ) {
|
if ( mkdir(path.c_str(), 0755) ) {
|
||||||
// FIXME This should not be fatal. Should probably move to a different storage area.
|
// FIXME This should not be fatal. Should probably move to a different storage area.
|
||||||
<<<<<<< HEAD
|
|
||||||
if ( errno != EEXIST ) {
|
if ( errno != EEXIST ) {
|
||||||
Error("Can't mkdir %s: %s", path.c_str(), strerror(errno));
|
Error("Can't mkdir %s: %s", path.c_str(), strerror(errno));
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
if ( errno != EEXIST )
|
|
||||||
Error("Can't mkdir %s: %s", path, strerror(errno));
|
|
||||||
>>>>>>> storageareas
|
|
||||||
}
|
}
|
||||||
if ( i == 2 )
|
if ( i == 2 )
|
||||||
strncpy(date_path, path.c_str(), sizeof(date_path));
|
strncpy(date_path, path.c_str(), sizeof(date_path));
|
||||||
|
|
Loading…
Reference in New Issue