mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
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. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5072 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
9dbde1cc06
commit
b029b8f861
3 files changed
+2
-10
No files matched your search
@@ -10,6 +10,7 @@ SVN
|
||||
Warn about outputs found in automatic mode
|
||||
sensord: Fix rrd support (#2276)
|
||||
Use the same colors for daily and weekly charts
|
||||
Drop workaround needed by old versions of rrdtool
|
||||
sensors-detect: Drop PCA9540 detection
|
||||
|
||||
3.0.0 (2007-11-24)
|
||||
|
||||
@@ -18,7 +18,7 @@ Build-time dependencies:
|
||||
|
||||
Run-time dependencies:
|
||||
* perl (for sensors-detect)
|
||||
* rrd (optional, for sensord)
|
||||
* rrdtool >= 1.2.1 (optional, for sensord)
|
||||
* proper kernel configuration (see below)
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <getopt.h>
|
||||
#include <rrd.h>
|
||||
|
||||
#include "sensord.h"
|
||||
@@ -251,10 +250,6 @@ rrdInit
|
||||
argc += num;
|
||||
argv[argc ++] = rraBuff;
|
||||
argv[argc] = NULL;
|
||||
optind = 1;
|
||||
opterr = 0;
|
||||
optopt = '?';
|
||||
optarg = NULL;
|
||||
if ((ret = rrd_create (argc, (char **) /* WEAK */ argv))) {
|
||||
sensorLog (LOG_ERR, "Error creating RRD file: %s: %s", rrdFile, rrd_get_error ());
|
||||
}
|
||||
@@ -417,10 +412,6 @@ rrdUpdate
|
||||
const char *argv[] = {
|
||||
"sensord", rrdFile, rrdBuff, NULL
|
||||
};
|
||||
optind = 1;
|
||||
opterr = 0;
|
||||
optopt = '?';
|
||||
optarg = NULL;
|
||||
if ((ret = rrd_update (3, (char **) /* WEAK */ argv))) {
|
||||
sensorLog (LOG_ERR, "Error updating RRD file: %s: %s", rrdFile, rrd_get_error ());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user