diff options
author | ru <ru@FreeBSD.org> | 2003-03-15 07:56:59 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-03-15 07:56:59 +0000 |
commit | 6999b653407d94906ec2d9b0e12f6fbdda2161a8 (patch) | |
tree | 52ec3e7bc937c469ca3f397191ca6c2929cd0b4f /bin/sh/expand.c | |
parent | 71e2d62a49b558881aa09378c949a5848c20448e (diff) | |
download | FreeBSD-src-6999b653407d94906ec2d9b0e12f6fbdda2161a8.zip FreeBSD-src-6999b653407d94906ec2d9b0e12f6fbdda2161a8.tar.gz |
Fixed (soon might be fatal) -Wformat warnings.
Diffstat (limited to 'bin/sh/expand.c')
-rw-r--r-- | bin/sh/expand.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c index c4ee6f8..e3748ab 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -531,7 +531,7 @@ subevalvar(char *p, char *str, int strloc, int subtype, int startloc, outfmt(&errout, "%s\n", startp); error((char *)NULL); } - error("%.*s: parameter %snot set", p - str - 1, + error("%.*s: parameter %snot set", (int)(p - str - 1), str, (varflags & VSNUL) ? "null or " : nullstr); return 0; @@ -666,7 +666,8 @@ again: /* jump here after setting a variable with ${var=text} */ case VSTRIMRIGHT: case VSTRIMRIGHTMAX: case VSLENGTH: - error("%.*s: parameter not set", p - var - 1, var); + error("%.*s: parameter not set", (int)(p - var - 1), + var); } } if (set && subtype != VSPLUS) { |