diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-05-02 05:07:13 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-05-02 05:07:13 +0000 |
commit | b93236f095388c6077f0eb42a87b3b8a7acbefc2 (patch) | |
tree | d303791e025d5c668f88d04fad109b71d25e8b64 /usr.bin/xargs | |
parent | 37ceba59493041b1a462a2f9fdb98ecb0dc3cab4 (diff) | |
download | FreeBSD-src-b93236f095388c6077f0eb42a87b3b8a7acbefc2.zip FreeBSD-src-b93236f095388c6077f0eb42a87b3b8a7acbefc2.tar.gz |
An explicit cast to size_t for an inline integer, since the two are not the
same on Alpha and lint(1) pointed that out.
lint(1) on the same architecture pointed out how silly a cast to (u_int) to
malloc(3)'s argument was. Change that to size_t.
Diffstat (limited to 'usr.bin/xargs')
-rw-r--r-- | usr.bin/xargs/xargs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index c5c50d3..6a81417 100644 --- a/usr.bin/xargs/xargs.c +++ b/usr.bin/xargs/xargs.c @@ -216,7 +216,7 @@ main(int argc, char **argv) if (nline <= 0) errx(1, "insufficient space for command"); - if ((bbp = malloc((u_int)nline + 1)) == NULL) + if ((bbp = malloc((size_t)nline + 1)) == NULL) err(1, "malloc"); ebp = (argp = p = bbp) + nline - 1; @@ -304,7 +304,7 @@ arg2: if (avj != av && repls > 0 && strstr(*tmp, replstr) != NULL) { strnsubst(tmp, replstr, - inpline, 255); + inpline, (size_t)255); repls--; } else { *tmp = strdup(*avj); |