svn commit: r229181 - stable/9/usr.bin/mt

Dimitry Andric dim at FreeBSD.org
Sun Jan 1 18:25:17 UTC 2012


Author: dim
Date: Sun Jan  1 18:25:16 2012
New Revision: 229181
URL: http://svn.freebsd.org/changeset/base/229181

Log:
  MFC r228619:
  
  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.

Modified:
  stable/9/usr.bin/mt/mt.c
Directory Properties:
  stable/9/usr.bin/mt/   (props changed)

Modified: stable/9/usr.bin/mt/mt.c
==============================================================================
--- stable/9/usr.bin/mt/mt.c	Sun Jan  1 18:17:37 2012	(r229180)
+++ stable/9/usr.bin/mt/mt.c	Sun Jan  1 18:25:16 2012	(r229181)
@@ -75,7 +75,7 @@ __FBSDID("$FreeBSD$");
 
 struct commands {
 	const char *c_name;
-	int c_code;
+	unsigned long c_code;
 	int c_ronly;
 	int c_flags;
 } com[] = {


More information about the svn-src-stable-9 mailing list