From de1118b1dd6cf2da8bfb243adebfab48d403a6ac Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 10 Aug 2018 15:16:36 +0000 Subject: [PATCH] Remove assert.h and commented out _DIAGASSERT. Remove assert.h and _DIAGASSERT to create a paper-trail of changes from NetBSD. Specifically didn't fix other style issues since I don't want this to diverge from the NetBSD original too much and that's too niggling a change to be worth future merge hassles. Differential Review: https://reviews.freebsd.org/D16649 --- lib/libc/gen/timespec_get.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/libc/gen/timespec_get.c b/lib/libc/gen/timespec_get.c index 61555b4ea053..1dd0147e933d 100644 --- a/lib/libc/gen/timespec_get.c +++ b/lib/libc/gen/timespec_get.c @@ -33,7 +33,6 @@ __RCSID("$NetBSD: timespec_get.c,v 1.2 2016/10/04 12:48:15 christos Exp $"); __FBSDID("$FreeBSD$"); -#include #include /* ISO/IEC 9899:201x 7.27.2.5 The timespec_get function */ @@ -42,8 +41,6 @@ int timespec_get(struct timespec *ts, int base) { -/* _DIAGASSERT(ts != NULL); */ - switch (base) { case TIME_UTC: if (clock_gettime(CLOCK_REALTIME, ts) == -1)