svn commit: r218376 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Feb 6 14:17:08 UTC 2011


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));


More information about the svn-src-head mailing list