--- Gnu-Mach/kern/xpr.c 2020/09/02 04:36:56 1.1.1.1 +++ Gnu-Mach/kern/xpr.c 2020/09/02 04:45:11 1.1.1.3 @@ -1,33 +1,35 @@ -/* +/* * Mach Operating System * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University * All Rights Reserved. - * + * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. - * + * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * + * * Carnegie Mellon requests users of this software to return to - * + * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 - * + * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. */ -#include /* * xpr silent tracing circular buffer. */ +#include + +#include #include #include #include "cpu_number.h" @@ -86,7 +88,7 @@ int arg1, arg2, arg3, arg4, arg5; x->cpuinfo = cpu_number(); } -void xprbootstrap() +void xprbootstrap(void) { vm_offset_t addr; vm_size_t size; @@ -113,7 +115,7 @@ void xprbootstrap() * the previous buffer contents. */ - bzero((char *) addr, size); + memset((char *) addr, 0, size); } xprbase = (struct xprbuf *) addr; @@ -123,7 +125,7 @@ void xprbootstrap() int xprinitial = 0; -void xprinit() +void xprinit(void) { xprflags |= xprinitial; } @@ -189,4 +191,4 @@ void xpr_dump(base, nbufs) (void) splx(s); } } -#endif MACH_KDB +#endif /* MACH_KDB */