Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2018 15:16:36 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337577 - head/lib/libc/gen
Message-ID:  <201808101516.w7AFGakX037356@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Aug 10 15:16:36 2018
New Revision: 337577
URL: https://svnweb.freebsd.org/changeset/base/337577

Log:
  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

Modified:
  head/lib/libc/gen/timespec_get.c

Modified: head/lib/libc/gen/timespec_get.c
==============================================================================
--- head/lib/libc/gen/timespec_get.c	Fri Aug 10 15:16:30 2018	(r337576)
+++ head/lib/libc/gen/timespec_get.c	Fri Aug 10 15:16:36 2018	(r337577)
@@ -33,7 +33,6 @@
 __RCSID("$NetBSD: timespec_get.c,v 1.2 2016/10/04 12:48:15 christos Exp $");
 __FBSDID("$FreeBSD$");
 
-#include <assert.h>
 #include <time.h>
 
 /* ISO/IEC 9899:201x 7.27.2.5 The timespec_get function */
@@ -41,8 +40,6 @@ __FBSDID("$FreeBSD$");
 int
 timespec_get(struct timespec *ts, int base)
 {
-
-/*	_DIAGASSERT(ts != NULL); */
 
 	switch (base) {
 	case TIME_UTC:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808101516.w7AFGakX037356>