diff --git a/src/zm_event.h b/src/zm_event.h index 77199509c..65ed38e4e 100644 --- a/src/zm_event.h +++ b/src/zm_event.h @@ -135,20 +135,20 @@ class Event { void UpdateFramesDelta(double offset); public: - static const char *getSubPath( struct tm *time ) { + static const char *getSubPath(struct tm *time) { static char subpath[PATH_MAX] = ""; - snprintf( subpath, sizeof(subpath), "%02d/%02d/%02d/%02d/%02d/%02d", time->tm_year-100, time->tm_mon+1, time->tm_mday, time->tm_hour, time->tm_min, time->tm_sec ); - return( subpath ); + snprintf(subpath, sizeof(subpath), + "%02d/%02d/%02d/%02d/%02d/%02d", + time->tm_year-100, time->tm_mon+1, time->tm_mday, time->tm_hour, time->tm_min, time->tm_sec + ); + return subpath; } static const char *getSubPath( time_t *time ) { - return Event::getSubPath( localtime( time ) ); + return Event::getSubPath(localtime(time)); } - char* getEventFile(void) { - return video_file; - } + char* getEventFile(void) { return video_file; } - public: static int PreAlarmCount() { return pre_alarm_count; }