use prototypes provided by header files instead of our own
This commit is contained in:
parent
a81e412494
commit
98d2c75927
@ -44,6 +44,7 @@ static char sccsid[] = "@(#)memalloc.c 8.1 (Berkeley) 5/31/93";
|
||||
#include "error.h"
|
||||
#include "machdep.h"
|
||||
#include "mystring.h"
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/*
|
||||
@ -53,7 +54,6 @@ static char sccsid[] = "@(#)memalloc.c 8.1 (Berkeley) 5/31/93";
|
||||
pointer
|
||||
ckmalloc(nbytes) {
|
||||
register pointer p;
|
||||
pointer malloc();
|
||||
|
||||
if ((p = malloc(nbytes)) == NULL)
|
||||
error("Out of space");
|
||||
@ -69,7 +69,6 @@ pointer
|
||||
ckrealloc(p, nbytes)
|
||||
register pointer p;
|
||||
{
|
||||
pointer realloc();
|
||||
|
||||
if ((p = realloc(p, nbytes)) == NULL)
|
||||
error("Out of space");
|
||||
|
@ -147,8 +147,6 @@ readcmd(argc, argv) char **argv; {
|
||||
|
||||
|
||||
umaskcmd(argc, argv) char **argv; {
|
||||
extern void *setmode();
|
||||
extern mode_t getmode();
|
||||
char *ap;
|
||||
int mask;
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user