summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/misc.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-07-24 14:12:05 +0000
committerobrien <obrien@FreeBSD.org>2001-07-24 14:12:05 +0000
commit44717cb5e9e4bbe75c712670e0fa44ef7711aad7 (patch)
tree406ef9426f8d043031e8e848c605676a503dd041 /usr.bin/find/misc.c
parent56240ae8081096f64098bd2841787849ff947763 (diff)
downloadFreeBSD-src-44717cb5e9e4bbe75c712670e0fa44ef7711aad7.zip
FreeBSD-src-44717cb5e9e4bbe75c712670e0fa44ef7711aad7.tar.gz
Remove emalloc and expand to the malloc + error checking it was, where used.
Diffstat (limited to 'usr.bin/find/misc.c')
-rw-r--r--usr.bin/find/misc.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/usr.bin/find/misc.c b/usr.bin/find/misc.c
index 36045a3..6e19403 100644
--- a/usr.bin/find/misc.c
+++ b/usr.bin/find/misc.c
@@ -115,18 +115,3 @@ queryuser(argv)
}
return (first == 'y');
}
-
-/*
- * emalloc --
- * malloc with error checking.
- */
-void *
-emalloc(len)
- u_int len;
-{
- void *p;
-
- if ((p = malloc(len)) == NULL)
- err(1, NULL);
- return (p);
-}
OpenPOWER on IntegriCloud