Date: Sun, 24 Jun 2012 07:03:22 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r237523 - head/lib/libc/gen Message-ID: <201206240703.q5O73MvB093661@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Sun Jun 24 07:03:22 2012 New Revision: 237523 URL: http://svn.freebsd.org/changeset/base/237523 Log: Remove the assert added in r237286 The use of assertions in libraries is not widely accepted. Requested by: bde, scottl Approved by: cperciva MFC after: 3 days X-MFC-With: r237286 Modified: head/lib/libc/gen/syslog.c Modified: head/lib/libc/gen/syslog.c ============================================================================== --- head/lib/libc/gen/syslog.c Sun Jun 24 07:01:49 2012 (r237522) +++ head/lib/libc/gen/syslog.c Sun Jun 24 07:03:22 2012 (r237523) @@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$"); #include <sys/un.h> #include <netdb.h> -#include <assert.h> #include <errno.h> #include <fcntl.h> #include <paths.h> @@ -414,7 +413,6 @@ void closelog(void) { THREAD_LOCK(); - assert(LogFile >= -1); if (LogFile != -1) { (void)_close(LogFile); LogFile = -1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206240703.q5O73MvB093661>