summaryrefslogtreecommitdiff
path: root/usr.bin/uname/uname.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-12 05:17:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-12 05:17:34 +0000
commit937c9a0f84db15a0a64ed0419a42da3a34d96cde (patch)
treeb6b3bfb6f6bbc506426154fc8294316054abb45f /usr.bin/uname/uname.c
parent4e5dd980fd1238d635621b9bba7d99533aababd6 (diff)
first pass at a -Wall cleanup
Diffstat (limited to 'usr.bin/uname/uname.c')
-rw-r--r--usr.bin/uname/uname.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/uname/uname.c b/usr.bin/uname/uname.c
index ac2f0a09a0d..469a5f2aca5 100644
--- a/usr.bin/uname/uname.c
+++ b/usr.bin/uname/uname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uname.c,v 1.4 1998/06/15 15:58:57 deraadt Exp $ */
+/* $OpenBSD: uname.c,v 1.5 2001/07/12 05:17:27 deraadt Exp $ */
/*
* Copyright (c) 1994 Winning Strategies, Inc.
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: uname.c,v 1.4 1998/06/15 15:58:57 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: uname.c,v 1.5 2001/07/12 05:17:27 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -139,7 +139,7 @@ main(argc, argv)
len = sizeof(buf);
if (sysctl(mib, 2, &buf, &len, NULL, 0) == -1)
err(1, "sysctl");
- printf("%.*s", len, buf);
+ printf("%.*s", (int)len, buf);
}
putchar('\n');