Update module assert
authorManoel Trapier <godzil@godzil.net>
Thu, 7 Mar 2013 18:17:18 +0000 (19:17 +0100)
committerManoël Trapier <godzil@MacBook-Pro.home>
Wed, 24 Jun 2015 22:41:44 +0000 (23:41 +0100)
modules/src/assert/BadAssert.c

index 3584221..f830970 100644 (file)
@@ -7,13 +7,11 @@
        indicated by the parameters, and then give a core dump
 */
 
+#include <stdio.h>
 #include <string.h>
 #include <system.h>
 
-static
-wr_num(fd, n)
-       File *fd;
-       int n;
+static void wr_num(File *fd, int n)
 {
        char s[2];
 
@@ -25,10 +23,7 @@ wr_num(fd, n)
        sys_write(fd, s, 1);
 }
 
-int
-_BadAssertion(file, lineno, assertion)
-       char *file, *assertion;
-       int lineno;
+int _BadAssertion(char *file, int lineno, char *assertion)
 {
 
        sys_write(STDERR, file, strlen(file));