summaryrefslogtreecommitdiff
path: root/pimd/pim_time.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-04-23 11:23:57 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-04-23 12:25:47 +0200
commitdf5dfb77b5c38fc1c5b242b3df1f4bc9b3e02869 (patch)
tree3e55d2c4d7154bed6ad54e03086ad178873173fc /pimd/pim_time.c
parent6a0eb6885b80260294673078dc97eb47b9ad753f (diff)
pimd: zassert => assert
No point in having pimd use zassert() while everything else uses plain assert(). Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_time.c')
-rw-r--r--pimd/pim_time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_time.c b/pimd/pim_time.c
index 9878fcf6b4..c88ee7554b 100644
--- a/pimd/pim_time.c
+++ b/pimd/pim_time.c
@@ -106,7 +106,7 @@ int pim_time_mmss(char *buf, int buf_size, long sec)
long mm;
int wr;
- zassert(buf_size >= 5);
+ assert(buf_size >= 5);
mm = sec / 60;
sec %= 60;
@@ -122,7 +122,7 @@ static int pim_time_hhmmss(char *buf, int buf_size, long sec)
long mm;
int wr;
- zassert(buf_size >= 8);
+ assert(buf_size >= 8);
hh = sec / 3600;
sec %= 3600;
@@ -156,7 +156,7 @@ void pim_time_timer_to_hhmmss(char *buf, int buf_size, struct thread *t_timer)
void pim_time_uptime(char *buf, int buf_size, int64_t uptime_sec)
{
- zassert(buf_size >= 8);
+ assert(buf_size >= 8);
pim_time_hhmmss(buf, buf_size, uptime_sec);
}