summaryrefslogtreecommitdiffstats
path: root/bin/sh/mkinit.c
diff options
context:
space:
mode:
authorrse <rse@FreeBSD.org>2009-06-01 10:50:17 +0000
committerrse <rse@FreeBSD.org>2009-06-01 10:50:17 +0000
commit88b5665aec3867f4281c38a6100590462cc8fa75 (patch)
treec4cf7e9300fd6592d71d06e3217c88c7bf2ac864 /bin/sh/mkinit.c
parent2bab6955606e0d2046018b3a7a9f06775f06b145 (diff)
downloadFreeBSD-src-88b5665aec3867f4281c38a6100590462cc8fa75.zip
FreeBSD-src-88b5665aec3867f4281c38a6100590462cc8fa75.tar.gz
be more type correct and align local ckmalloc() with its underlying malloc(3) by using a "size_t" instead of an "int" argument
Diffstat (limited to 'bin/sh/mkinit.c')
-rw-r--r--bin/sh/mkinit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/mkinit.c b/bin/sh/mkinit.c
index b158b5f..022eed4 100644
--- a/bin/sh/mkinit.c
+++ b/bin/sh/mkinit.c
@@ -159,7 +159,7 @@ void addstr(char *, struct text *);
void addchar(int, struct text *);
void writetext(struct text *, FILE *);
FILE *ckfopen(char *, char *);
-void *ckmalloc(int);
+void *ckmalloc(size_t);
char *savestr(char *);
void error(char *);
@@ -464,7 +464,7 @@ ckfopen(char *file, char *mode)
}
void *
-ckmalloc(int nbytes)
+ckmalloc(size_t nbytes)
{
char *p;
OpenPOWER on IntegriCloud