Corrected ZM_EVENT_DIR to ZM_DIR_EVENTS.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@304 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-01-13 11:50:47 +00:00
parent b36b2c9fc4
commit 77587e24e9
2 changed files with 4 additions and 4 deletions

View File

@ -1312,7 +1312,7 @@ Event::Event( Monitor *p_monitor, time_t p_start_time ) : monitor( p_monitor ),
alarm_frames = 0;
tot_score = 0;
max_score = 0;
sprintf( path, ZM_EVENT_DIR "/%s/%04d", monitor->Name(), id );
sprintf( path, ZM_DIR_EVENTS "/%s/%04d", monitor->Name(), id );
struct stat statbuf;
errno = 0;
@ -1499,7 +1499,7 @@ Monitor::Monitor( int p_id, char *p_name, int p_function, int p_device, int p_ch
{
static char path[PATH_MAX];
sprintf( path, ZM_EVENT_DIR );
sprintf( path, ZM_DIR_EVENTS );
struct stat statbuf;
errno = 0;
@ -1512,7 +1512,7 @@ Monitor::Monitor( int p_id, char *p_name, int p_function, int p_device, int p_ch
}
}
sprintf( path, ZM_EVENT_DIR "/%s", name );
sprintf( path, ZM_DIR_EVENTS "/%s", name );
errno = 0;
stat( path, &statbuf );

View File

@ -28,7 +28,7 @@
#define ZM_SHM_KEY <from zmconfig> // Shared memory key to use, only change if it clashes with another application (from zmconfig)
#define ZM_EVENT_DIR "<from zmconfig>" // Local path to where events directory lives (from zmconfig)
#define ZM_DIR_EVENTS "<from zmconfig>" // Local path to where events directory lives (from zmconfig)
#define ZM_FORCED_ALARM_SCORE <from zmconfig> // Score to give X10 forced alarms (from zmconfig)