[Nut-upsdev] [PATCH 22/36] remove dead #defines and use "#if 0" to comment out code!
Greg A. Woods
woods at planix.com
Thu Mar 8 23:21:33 UTC 2012
From: "Greg A. Woods" <woods at planix.com>
---
clients/upsmon.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/clients/upsmon.c b/clients/upsmon.c
index fe3f5fb..33d0a64 100644
--- a/clients/upsmon.c
+++ b/clients/upsmon.c
@@ -79,12 +79,6 @@ static int opt_af = AF_UNSPEC;
static struct sigaction sa;
static sigset_t nut_upsmon_sigmask;
-#ifdef SHUT_RDWR
-#define shutdown_how SHUT_RDWR
-#else
-#define shutdown_how 2
-#endif
-
static void setflag(int *val, int flag)
{
*val |= flag;
@@ -709,8 +703,10 @@ static void recalc(void)
ups = ups->next;
}
- /* upsdebugx(3, "Current power value: %d", val_ol);
- upsdebugx(3, "Minimum power value: %d", minsupplies); */
+#if 0
+ upsdebugx(3, "Current power value: %d", val_ol);
+ upsdebugx(3, "Minimum power value: %d", minsupplies);
+#endif
if (val_ol < minsupplies)
forceshutdown();
--
1.7.9.2
More information about the Nut-upsdev
mailing list