From ed07bd48b03c02ede2e8e381231b08dfda451c64 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 17 Jun 2016 23:34:20 +0100 Subject: [PATCH] libc: remove \r\n markers from assert.c and tidy --- Library/libs/assert.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Library/libs/assert.c b/Library/libs/assert.c index 76981c90..d04101da 100644 --- a/Library/libs/assert.c +++ b/Library/libs/assert.c @@ -1,18 +1,19 @@ -/* Copyright (C) 1996 Robert de Bath - * This file is part of the Linux-8086 C library and is distributed - * under the GNU Library General Public License. - */ -#include -#include -#include -#include - -void __errput(char *str) +/* Copyright (C) 1996 Robert de Bath + * This file is part of the Linux-8086 C library and is distributed + * under the GNU Library General Public License. + */ +#include +#include +#include +#include + +void __errput(const char *str) { write(2, str, strlen(str)); -} - -void __assert(char *assertion, char *filename, int linenumber) +} + +void __assert(const char *assertion, const char *filename, + const int linenumber) { __errput("Failed '"); __errput(assertion); @@ -22,4 +23,4 @@ void __assert(char *assertion, char *filename, int linenumber) __errput(_itoa(linenumber)); __errput(".\n"); abort(); -} +} -- 2.34.1