summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol/util.c
diff options
context:
space:
mode:
authorjohan <johan@FreeBSD.org>2003-02-20 21:07:59 +0000
committerjohan <johan@FreeBSD.org>2003-02-20 21:07:59 +0000
commitb8e76084ebcdc74f8d2e595baaf6fcff8f80d3e0 (patch)
tree2ec7011bd989f809329cda15b18559f7d72a53f6 /sbin/camcontrol/util.c
parent72688ad7fe6ac65cbfc2c4d260ba7d901bf1bcc2 (diff)
downloadFreeBSD-src-b8e76084ebcdc74f8d2e595baaf6fcff8f80d3e0.zip
FreeBSD-src-b8e76084ebcdc74f8d2e595baaf6fcff8f80d3e0.tar.gz
Make camcontrol WARNS=2 clean.
Approved by: ken
Diffstat (limited to 'sbin/camcontrol/util.c')
-rw-r--r--sbin/camcontrol/util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/camcontrol/util.c b/sbin/camcontrol/util.c
index 63f952d..272d2a1 100644
--- a/sbin/camcontrol/util.c
+++ b/sbin/camcontrol/util.c
@@ -48,10 +48,12 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
+#include <sys/stdint.h>
+#include <sys/types.h>
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <sys/types.h>
#include <camlib.h>
#include "camcontrol.h"
@@ -116,7 +118,7 @@ arg_put(void *hook, int letter, void *arg, int count, char *name)
{
case 'i':
case 'b':
- printf("%d ", (intptr_t)arg);
+ printf("%jd ", (intmax_t)(intptr_t)arg);
break;
case 'c':
OpenPOWER on IntegriCloud