summaryrefslogtreecommitdiffstats
path: root/usr.bin/mt/mt.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-17 02:23:30 +0000
committerdim <dim@FreeBSD.org>2011-12-17 02:23:30 +0000
commita709fcdc55f5dcbcf76a75bd8e1a0afbf0552efd (patch)
treef6a56dbfe6396d7afe9f656a52c658fd4f046840 /usr.bin/mt/mt.c
parent32859c59906b24d79fd94faaa83ad9020a6c036c (diff)
downloadFreeBSD-src-a709fcdc55f5dcbcf76a75bd8e1a0afbf0552efd.zip
FreeBSD-src-a709fcdc55f5dcbcf76a75bd8e1a0afbf0552efd.tar.gz
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
Diffstat (limited to 'usr.bin/mt/mt.c')
-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 766ca2f..3fbbdf3 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[] = {
OpenPOWER on IntegriCloud