From cee6ab37e7b9ca36e84e1770640752edcb501899 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 26 Oct 1993 16:26:36 +0000 Subject: [PATCH] Compilers should recognize void by now --- modules/src/alloc/No_Mem.c | 1 + modules/src/alloc/alloc.3 | 5 +++-- modules/src/alloc/alloc.h | 3 ++- modules/src/alloc/botch.c | 2 -- modules/src/alloc/clear.c | 2 -- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/src/alloc/No_Mem.c b/modules/src/alloc/No_Mem.c index c880881df..f4a6b1105 100644 --- a/modules/src/alloc/No_Mem.c +++ b/modules/src/alloc/No_Mem.c @@ -6,6 +6,7 @@ #include #include "alloc.h" +void No_Mem() { sys_write(STDERR, "Out of memory\n", 14); diff --git a/modules/src/alloc/alloc.3 b/modules/src/alloc/alloc.3 index 0b37403ae..f7c963cad 100644 --- a/modules/src/alloc/alloc.3 +++ b/modules/src/alloc/alloc.3 @@ -38,13 +38,14 @@ Malloc, Salloc, Realloc, Srealloc, st_alloc, st_free\ \-\ low level memory alloc .br .B unsigned int size; .PP -.br -.B clear(ptr, size) +.B void clear(ptr, size) .br .B char *ptr; .br .B unsigned int size; .PP +.void No_Mem() +.PP .SH DESCRIPTION This set of routines provides a checking memory allocation mechanism. .PP diff --git a/modules/src/alloc/alloc.h b/modules/src/alloc/alloc.h index 82783a2d9..c516fee5f 100644 --- a/modules/src/alloc/alloc.h +++ b/modules/src/alloc/alloc.h @@ -24,12 +24,13 @@ char *Srealloc(char *, unsigned int); char *Realloc(char *, unsigned int); char *st_alloc(char **, unsigned int, int); char *std_alloc(char **, unsigned int, int, int *); -int No_Mem(void); +void No_Mem(void); void clear(char *, unsigned int); void botch(char *, unsigned int); #else extern char *Salloc(), *Malloc(), *Srealloc(), *Realloc(); extern char *st_alloc(), *std_alloc(); +void clear(), botch(), No_Mem(); #endif /* S T R U C T U R E - S T O R A G E D E F I N I T I O N S */ diff --git a/modules/src/alloc/botch.c b/modules/src/alloc/botch.c index cc5880866..02d54a7b3 100644 --- a/modules/src/alloc/botch.c +++ b/modules/src/alloc/botch.c @@ -9,9 +9,7 @@ #include "alloc.h" -#if __STDC__ void -#endif botch(ptr, n) register char *ptr; register unsigned int n; diff --git a/modules/src/alloc/clear.c b/modules/src/alloc/clear.c index 36ebcad59..e88de6080 100644 --- a/modules/src/alloc/clear.c +++ b/modules/src/alloc/clear.c @@ -10,9 +10,7 @@ /* instead of Calloc: */ -#if __STDC__ void -#endif clear(ptr, n) register char *ptr; register unsigned int n; -- 2.34.1