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:
Jean Delvare committed 2007-12-11 22:56:47 +00:00
1 parent 9dbde1cc06
commit b029b8f861
3 files changed
+2 -10

No files matched your search

-9
View File
@@ -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 ());
}