summaryrefslogtreecommitdiffstats
path: root/usr.bin/uname
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-06 21:01:54 +0000
committerbde <bde@FreeBSD.org>1998-07-06 21:01:54 +0000
commit0609531ab6b945c4918206f095bc1f6640408654 (patch)
tree0e5040099f85d8bf99734db8ff976b2c1e7d1b49 /usr.bin/uname
parentbaf42e5599bd1cbdb2a0e5427980549767a002b8 (diff)
downloadFreeBSD-src-0609531ab6b945c4918206f095bc1f6640408654.zip
FreeBSD-src-0609531ab6b945c4918206f095bc1f6640408654.tar.gz
Fixed printf format errors.
Diffstat (limited to 'usr.bin/uname')
-rw-r--r--usr.bin/uname/uname.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/uname/uname.c b/usr.bin/uname/uname.c
index feb3c2b..68fd38b 100644
--- a/usr.bin/uname/uname.c
+++ b/usr.bin/uname/uname.c
@@ -110,7 +110,7 @@ main(argc, argv)
len = sizeof(buf);
if (sysctl(mib, 2, &buf, &len, NULL, 0) == -1)
err(1, "sysctl");
- (void)printf("%s%.*s", prefix, len, buf);
+ (void)printf("%s%.*s", prefix, (int)len, buf);
prefix = " ";
}
if (flags & NFLAG) {
@@ -119,7 +119,7 @@ main(argc, argv)
len = sizeof(buf);
if (sysctl(mib, 2, &buf, &len, NULL, 0) == -1)
err(1, "sysctl");
- (void)printf("%s%.*s", prefix, len, buf);
+ (void)printf("%s%.*s", prefix, (int)len, buf);
prefix = " ";
}
if (flags & RFLAG) {
@@ -128,7 +128,7 @@ main(argc, argv)
len = sizeof(buf);
if (sysctl(mib, 2, &buf, &len, NULL, 0) == -1)
err(1, "sysctl");
- (void)printf("%s%.*s", prefix, len, buf);
+ (void)printf("%s%.*s", prefix, (int)len, buf);
prefix = " ";
}
if (flags & VFLAG) {
@@ -140,7 +140,7 @@ main(argc, argv)
for (p = buf, tlen = len; tlen--; ++p)
if (*p == '\n' || *p == '\t')
*p = ' ';
- (void)printf("%s%.*s", prefix, len, buf);
+ (void)printf("%s%.*s", prefix, (int)len, buf);
prefix = " ";
}
if (flags & MFLAG) {
@@ -149,7 +149,7 @@ main(argc, argv)
len = sizeof(buf);
if (sysctl(mib, 2, &buf, &len, NULL, 0) == -1)
err(1, "sysctl");
- (void)printf("%s%.*s", prefix, len, buf);
+ (void)printf("%s%.*s", prefix, (int)len, buf);
prefix = " ";
}
(void)printf("\n");
OpenPOWER on IntegriCloud