getloadavg: omit unused var
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Feb 2011 20:43:46 +0000 (12:43 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Feb 2011 20:43:46 +0000 (12:43 -0800)
* lib/getloadavg.c (getloadavg): Omit unused local variable.

ChangeLog
lib/getloadavg.c

index 8e14a2be814d173551875297515c3bee8f8e270e..3e0378c4a406164adceff9740fb663f5cf8f143f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       getloadavg: omit unused var
+       * lib/getloadavg.c (getloadavg): Omit unused local variable.
+
 2011-02-15  Jim Meyering  <meyering@redhat.com>
 
        doc: update users.txt
index 96a6aa4d49cec91b8b5843ef4a2c4b6bb9d207f9..29c9bfff00fa7dfc22eca4064ace042fae27e333 100644 (file)
@@ -620,7 +620,6 @@ getloadavg (double loadavg[], int nelem)
     {
       double numerator = 0;
       double denominator = 1;
-      bool have_digit = false;
 
       while (*ptr == ' ')
         ptr++;