Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2011 02:23:30 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228619 - head/usr.bin/mt
Message-ID:  <201112170223.pBH2NUlO038398@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 17 02:23:30 2011
New Revision: 228619
URL: http://svn.freebsd.org/changeset/base/228619

Log:
  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

Modified:
  head/usr.bin/mt/mt.c

Modified: head/usr.bin/mt/mt.c
==============================================================================
--- head/usr.bin/mt/mt.c	Sat Dec 17 01:54:51 2011	(r228618)
+++ head/usr.bin/mt/mt.c	Sat Dec 17 02:23:30 2011	(r228619)
@@ -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[] = {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112170223.pBH2NUlO038398>