diff options
author | rse <rse@FreeBSD.org> | 2009-06-01 10:50:17 +0000 |
---|---|---|
committer | rse <rse@FreeBSD.org> | 2009-06-01 10:50:17 +0000 |
commit | 88b5665aec3867f4281c38a6100590462cc8fa75 (patch) | |
tree | c4cf7e9300fd6592d71d06e3217c88c7bf2ac864 /bin/sh/alias.c | |
parent | 2bab6955606e0d2046018b3a7a9f06775f06b145 (diff) | |
download | FreeBSD-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/alias.c')
-rw-r--r-- | bin/sh/alias.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/alias.c b/bin/sh/alias.c index ea7ce55..2edfe95 100644 --- a/bin/sh/alias.c +++ b/bin/sh/alias.c @@ -97,7 +97,7 @@ setalias(char *name, char *val) ap->val = savestr(val); #else /* hack */ { - int len = strlen(val); + size_t len = strlen(val); ap->val = ckmalloc(len + 2); memcpy(ap->val, val, len); ap->val[len] = ' '; /* fluff */ |