Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2015 06:00:05 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283867 - head/bin/ps
Message-ID:  <201506010600.t51605uF053797@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo (ports committer)
Date: Mon Jun  1 06:00:04 2015
New Revision: 283867
URL: https://svnweb.freebsd.org/changeset/base/283867

Log:
  Remove unused variable, this variable fmtstr was introduced at revision r225868
  and it is not used anymore after the convertion to use libxo at revision r283304.
  
  Differential Revision:	D2678
  Reviewed by:		marcel

Modified:
  head/bin/ps/ps.c

Modified: head/bin/ps/ps.c
==============================================================================
--- head/bin/ps/ps.c	Mon Jun  1 05:56:43 2015	(r283866)
+++ head/bin/ps/ps.c	Mon Jun  1 06:00:04 2015	(r283867)
@@ -180,7 +180,7 @@ main(int argc, char *argv[])
 	KINFO_STR *ks;
 	struct varent *vent;
 	struct winsize ws = { .ws_row = 0 };
-	const char *nlistf, *memf, *fmtstr, *str;
+	const char *nlistf, *memf, *str;
 	char *cols;
 	int all, ch, elem, flag, _fmt, i, lineno, linelen, left;
 	int descendancy, nentries, nkept, nselectors;
@@ -649,11 +649,6 @@ main(int argc, char *argv[])
 		linelen = 0;
 		xo_open_instance("process");
 		STAILQ_FOREACH(vent, &varlist, next_ve) {
-	        	if (vent->var->flag & LJUST)
-				fmtstr = "%-*s";
-			else
-				fmtstr = "%*s";
-
 			ks = STAILQ_FIRST(&kinfo[i].ki_ks);
 			STAILQ_REMOVE_HEAD(&kinfo[i].ki_ks, ks_next);
 			/* Truncate rightmost column if necessary.  */



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