svn commit: r237523 - head/lib/libc/gen

看板FB_svn作者時間13年前 (2012/06/24 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
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"
文章代碼(AID): #1Fvi9ozD (FB_svn)
文章代碼(AID): #1Fvi9ozD (FB_svn)