summaryrefslogtreecommitdiff
path: root/src/timespec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timespec.c')
-rw-r--r--src/timespec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/timespec.c b/src/timespec.c
index 42bc157..533f00d 100644
--- a/src/timespec.c
+++ b/src/timespec.c
@@ -195,7 +195,6 @@ void timespec_addms(struct timespec *ts, unsigned long ms)
void timespec_add(struct timespec *ts, const struct timespec *add)
{
- assert(ts && add);
ts->tv_nsec += add->tv_nsec;
ts->tv_sec += ts->tv_nsec / 1000000000 + add->tv_sec;
ts->tv_nsec = ts->tv_nsec % 1000000000;
@@ -203,7 +202,6 @@ void timespec_add(struct timespec *ts, const struct timespec *add)
int timespec_sub(struct timespec *ts, const struct timespec *sub)
{
- assert(ts && sub);
if (ts->tv_sec < sub->tv_sec)
{
ts->tv_sec = sub->tv_sec - ts->tv_sec;
@@ -255,7 +253,6 @@ int timespec_sub(struct timespec *ts, const struct timespec *sub)
int timespec_cmp(const struct timespec *x, const struct timespec *y)
{
- assert(x && y);
if (x->tv_sec < y->tv_sec)
{
return -1;