Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Feb 2011 14:17:08 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218376 - head/sbin/hastd
Message-ID:  <201102061417.p16EH8C5067649@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Sun Feb  6 14:17:08 2011
New Revision: 218376
URL: http://svn.freebsd.org/changeset/base/218376

Log:
  Now that we break the loop on fstat(2) failure we no longer need to satisfy
  gcc's imperfections.
  
  MFC after:	1 week

Modified:
  head/sbin/hastd/hastd.c

Modified: head/sbin/hastd/hastd.c
==============================================================================
--- head/sbin/hastd/hastd.c	Sun Feb  6 14:09:19 2011	(r218375)
+++ head/sbin/hastd/hastd.c	Sun Feb  6 14:17:08 2011	(r218376)
@@ -183,8 +183,6 @@ descriptors_assert(const struct hast_res
 			isopen = false;
 			mode = 0;
 		} else {
-			isopen = true;	/* silence gcc */
-			mode = 0;	/* silence gcc */
 			(void)snprintf(msg, sizeof(msg),
 			    "Unable to fstat descriptor %d: %s", fd,
 			    strerror(errno));



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