diff options
author | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2018-01-22 17:12:03 +0300 |
---|---|---|
committer | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2018-01-22 17:12:03 +0300 |
commit | 4c221036709ac384e36d24aa0ae49fa09e312ddd (patch) | |
tree | bcba3e1fb45d2cc83489fd8c729c8cba9a7bce82 /tests/zbxmocktime.c | |
parent | c8d11dc9dda37e8acb852468d914b33d5efb1d54 (diff) |
.......... [ZBX-12965] fixed typo in variable name
Diffstat (limited to 'tests/zbxmocktime.c')
-rw-r--r-- | tests/zbxmocktime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/zbxmocktime.c b/tests/zbxmocktime.c index 924500212b6..f3cb5668a60 100644 --- a/tests/zbxmocktime.c +++ b/tests/zbxmocktime.c @@ -121,7 +121,7 @@ static zbx_mock_error_t ts_get_date(const char *text, int *year, int *month, int ******************************************************************************/ static zbx_mock_error_t ts_get_time(const char *text, int *hours, int *minutes, int *seconds, const char **pnext) { - const char *hours_end, *minutes_end, *seconds_send; + const char *hours_end, *minutes_end, *seconds_end; hours_end = ts_get_component_end(text); if (hours_end == text || ':' != *hours_end) @@ -131,12 +131,12 @@ static zbx_mock_error_t ts_get_time(const char *text, int *hours, int *minutes, if (minutes_end - hours_end != 3 || ':' != *minutes_end) return ZBX_MOCK_NOT_A_TIMESTAMP; - seconds_send = ts_get_component_end(minutes_end + 1); + seconds_end = ts_get_component_end(minutes_end + 1); - if (seconds_send - minutes_end != 3) + if (seconds_end - minutes_end != 3) return ZBX_MOCK_NOT_A_TIMESTAMP; - *pnext = seconds_send; + *pnext = seconds_end; *hours = atoi(text); *minutes = atoi(hours_end + 1); |