Loading...
gen/FreeBSD/assert.c Libc-1725.40.4 Libc-825.26
--- Libc/Libc-1725.40.4/gen/FreeBSD/assert.c
+++ Libc/Libc-825.26/gen/FreeBSD/assert.c
@@ -36,27 +36,24 @@
 #include <assert.h>
 #include <stdlib.h>
 #include <unistd.h>
-#if __has_include(<CrashReporterClient.h>)
-#include <CrashReporterClient.h>
-#else
-#define CRGetCrashLogMessage() NULL
-#define CRSetCrashLogMessage(...)
-#endif
+#include "CrashReporterClient.h"
 #include "_simple.h"
 
 void
-__assert_rtn(const char *func, const char *file, int line,
-    const char *failedexpr)
+__assert_rtn(func, file, line, failedexpr)
+	const char *func, *file;
+	int line;
+	const char *failedexpr;
 {
 	if (func == (const char *)-1L) {
 		/* 8462256: special case to replace __eprintf */
 		_simple_dprintf(STDERR_FILENO,
-		     "%s:%d: failed assertion `%s'\n", file, line, failedexpr);
+		     "%s:%u: failed assertion `%s'\n", file, line, failedexpr);
 		if (!CRGetCrashLogMessage()) {
 			_SIMPLE_STRING s = _simple_salloc();
 			if (s) {
 				_simple_sprintf(s,
-				  "%s:%d: failed assertion `%s'\n",
+				  "%s:%u: failed assertion `%s'\n",
 				  file, line, failedexpr);
 				CRSetCrashLogMessage(_simple_string(s));
 			} else