Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2012 17:52:18 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242620 - head/bin/sh
Message-ID:  <201211051752.qA5HqI6m050154@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Mon Nov  5 17:52:18 2012
New Revision: 242620
URL: http://svnweb.freebsd.org/changeset/base/242620

Log:
  sh: Change cmdtype in tblentry from short to signed char.
  
  If this is a smaller type than int anyway, we can make it the smallest
  possible.

Modified:
  head/bin/sh/exec.c

Modified: head/bin/sh/exec.c
==============================================================================
--- head/bin/sh/exec.c	Mon Nov  5 17:50:40 2012	(r242619)
+++ head/bin/sh/exec.c	Mon Nov  5 17:52:18 2012	(r242620)
@@ -85,7 +85,7 @@ struct tblentry {
 	struct tblentry *next;	/* next entry in hash chain */
 	union param param;	/* definition of builtin function */
 	int special;		/* flag for special builtin commands */
-	short cmdtype;		/* index identifying command */
+	signed char cmdtype;	/* index identifying command */
 	char rehash;		/* if set, cd done since entry created */
 	char cmdname[];		/* name of command */
 };



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