From: Alan Cox Date: Fri, 17 Jun 2016 22:34:20 +0000 (+0100) Subject: libc: remove \r\n markers from assert.c and tidy X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ed07bd48b03c02ede2e8e381231b08dfda451c64;p=FUZIX.git libc: remove \r\n markers from assert.c and tidy --- 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(); -} +}