Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 18:25:17 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229181 - stable/9/usr.bin/mt
Message-ID:  <201201011825.q01IPHFC024561@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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[] = {



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