svn commit: r237523 - head/lib/libc/gen
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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
討論串 (同標題文章)