Changeset 5072

Show
Ignore:
Timestamp:
12/11/07 23:56:47 (6 years ago)
Author:
khali
Message:

sensord: Drop workaround needed by old versions of rrdtool. The bug
(missing getopt variables initialization) was fixed in rrdtool version
1.2.1, 2.5 years ago.

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r5070 r5072  
    1111  sensord: Fix rrd support (#2276) 
    1212           Use the same colors for daily and weekly charts 
     13           Drop workaround needed by old versions of rrdtool 
    1314  sensors-detect: Drop PCA9540 detection 
    1415 
  • lm-sensors/branches/lm-sensors-3.0.0/INSTALL

    r5067 r5072  
    1919Run-time dependencies: 
    2020* perl (for sensors-detect) 
    21 * rrd (optional, for sensord) 
     21* rrdtool >= 1.2.1 (optional, for sensord) 
    2222* proper kernel configuration (see below) 
    2323 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensord/rrd.c

    r5071 r5072  
    4141#include <sys/types.h> 
    4242 
    43 #include <getopt.h> 
    4443#include <rrd.h> 
    4544 
     
    252251        argv[argc ++] = rraBuff; 
    253252        argv[argc] = NULL; 
    254         optind = 1; 
    255         opterr = 0; 
    256         optopt = '?'; 
    257         optarg = NULL; 
    258253        if ((ret = rrd_create (argc, (char **) /* WEAK */ argv))) { 
    259254          sensorLog (LOG_ERR, "Error creating RRD file: %s: %s", rrdFile, rrd_get_error ()); 
     
    418413      "sensord", rrdFile, rrdBuff, NULL 
    419414    }; 
    420     optind = 1; 
    421     opterr = 0; 
    422     optopt = '?'; 
    423     optarg = NULL; 
    424415    if ((ret = rrd_update (3, (char **) /* WEAK */ argv))) { 
    425416      sensorLog (LOG_ERR, "Error updating RRD file: %s: %s", rrdFile, rrd_get_error ());