libc: remove \r\n markers from assert.c and tidy
authorAlan Cox <alan@linux.intel.com>
Fri, 17 Jun 2016 22:34:20 +0000 (23:34 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 17 Jun 2016 22:34:20 +0000 (23:34 +0100)
Library/libs/assert.c

index 76981c9..d04101d 100644 (file)
@@ -1,18 +1,19 @@
-/* Copyright (C) 1996 Robert de Bath <rdebath@cix.compulink.co.uk>\r
- * This file is part of the Linux-8086 C library and is distributed\r
- * under the GNU Library General Public License.\r
- */  \r
-#include <unistd.h>\r
-#include <string.h>\r
-#include <stdlib.h>\r
-#include <assert.h>\r
-\r
-void __errput(char *str) \r
+/* Copyright (C) 1996 Robert de Bath <rdebath@cix.compulink.co.uk>
+ * This file is part of the Linux-8086 C library and is distributed
+ * under the GNU Library General Public License.
+ */
+#include <unistd.h>
+#include <string.h>
+#include <stdlib.h>
+#include <assert.h>
+
+void __errput(const char *str)
 {
        write(2, str, strlen(str));
-}\r
-\r
-void __assert(char *assertion, char *filename, int linenumber) \r
+}
+
+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();
-} \r
+}