summaryrefslogtreecommitdiff
path: root/usr.bin/mt
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-12-17 02:23:30 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-12-17 02:23:30 +0000
commitf3fbaba1363f9ba8be3089f96abee7c51f6c8102 (patch)
treef6a56dbfe6396d7afe9f656a52c658fd4f046840 /usr.bin/mt
parentb884d5e84ad353335b16908b2940123bddc755f3 (diff)
downloadsrc-test-f3fbaba1363f9ba8be3089f96abee7c51f6c8102.tar.gz
src-test-f3fbaba1363f9ba8be3089f96abee7c51f6c8102.zip
In usr.bin/mt/mt.c, the c_code member of struct commands should really
be an unsigned long, since it will contain values of ioctl request codes. On 64-bit arches, these will not fit into an int. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=228619
Diffstat (limited to 'usr.bin/mt')
-rw-r--r--usr.bin/mt/mt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/mt/mt.c b/usr.bin/mt/mt.c
index 766ca2f7d5251..3fbbdf394533f 100644
--- a/usr.bin/mt/mt.c
+++ b/usr.bin/mt/mt.c
@@ -75,7 +75,7 @@ __FBSDID("$FreeBSD$");
static const struct commands {
const char *c_name;
- int c_code;
+ unsigned long c_code;
int c_ronly;
int c_flags;
} com[] = {