diff options
-rw-r--r-- | include/zbxtypes.h | 4 | ||||
-rw-r--r-- | src/zabbix_server/taskmanager/proxy_tasks.c | 4 | ||||
-rw-r--r-- | src/zabbix_server/timer/timer.c | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/include/zbxtypes.h b/include/zbxtypes.h index 97ec0298ebb..da85d487359 100644 --- a/include/zbxtypes.h +++ b/include/zbxtypes.h @@ -154,10 +154,10 @@ typedef off_t zbx_offset_t; #define ZBX_FS_SIZE_T ZBX_FS_UI64 #define ZBX_FS_SSIZE_T ZBX_FS_I64 -#define ZBX_FS_TIME_T_T ZBX_FS_I64 +#define ZBX_FS_TIME_T ZBX_FS_I64 #define zbx_fs_size_t zbx_uint64_t /* use this type only in calls to printf() for formatting size_t */ #define zbx_fs_ssize_t zbx_int64_t /* use this type only in calls to printf() for formatting ssize_t */ -#define zbx_fs_time_t_t zbx_int64_t /* use this type only in calls to printf() for formatting time_t */ +#define zbx_fs_time_t zbx_int64_t /* use this type only in calls to printf() for formatting time_t */ #ifndef S_ISREG # define S_ISREG(x) (((x) & S_IFMT) == S_IFREG) diff --git a/src/zabbix_server/taskmanager/proxy_tasks.c b/src/zabbix_server/taskmanager/proxy_tasks.c index af1217b0662..a2926a53caa 100644 --- a/src/zabbix_server/taskmanager/proxy_tasks.c +++ b/src/zabbix_server/taskmanager/proxy_tasks.c @@ -58,9 +58,9 @@ void zbx_tm_get_remote_tasks(zbx_vector_ptr_t *tasks, zbx_uint64_t proxy_hostid) " on t.taskid=cn.taskid" " where t.status=%d" " and t.proxy_hostid=" ZBX_FS_UI64 - " and (t.ttl=0 or t.clock+t.ttl>" ZBX_FS_TIME_T_T ")" + " and (t.ttl=0 or t.clock+t.ttl>" ZBX_FS_TIME_T ")" " order by t.taskid", - ZBX_TM_STATUS_NEW, proxy_hostid, (zbx_fs_time_t_t)time(NULL)); + ZBX_TM_STATUS_NEW, proxy_hostid, (zbx_fs_time_t)time(NULL)); while (NULL != (row = DBfetch(result))) { diff --git a/src/zabbix_server/timer/timer.c b/src/zabbix_server/timer/timer.c index 63f66ab4737..6b0548c8c68 100644 --- a/src/zabbix_server/timer/timer.c +++ b/src/zabbix_server/timer/timer.c @@ -286,8 +286,8 @@ static int update_maintenance_hosts(zbx_host_maintenance_t *hm, int hm_count) if (0 == hm[i].host_maintenance_from) { - zbx_snprintf_alloc(&sql, &sql_alloc, &sql_offset, ",maintenance_from=" ZBX_FS_TIME_T_T, - (zbx_fs_time_t_t)hm[i].maintenance_from); + zbx_snprintf_alloc(&sql, &sql_alloc, &sql_offset, ",maintenance_from=" ZBX_FS_TIME_T, + (zbx_fs_time_t)hm[i].maintenance_from); } zbx_snprintf_alloc(&sql, &sql_alloc, &sql_offset, " where hostid=" ZBX_FS_UI64, @@ -396,9 +396,9 @@ static int process_maintenance(void) " from maintenances m,maintenances_windows mw,timeperiods tp" " where m.maintenanceid=mw.maintenanceid" " and mw.timeperiodid=tp.timeperiodid" - " and m.active_since<=" ZBX_FS_TIME_T_T - " and m.active_till>" ZBX_FS_TIME_T_T, - (zbx_fs_time_t_t)now, (zbx_fs_time_t_t)now); + " and m.active_since<=" ZBX_FS_TIME_T + " and m.active_till>" ZBX_FS_TIME_T, + (zbx_fs_time_t)now, (zbx_fs_time_t)now); while (NULL != (row = DBfetch(result))) { |