From: Jean Delvare Date: Wed, 24 Oct 2007 15:11:19 +0000 Subject: [lm-sensors] [PATCH 3/6] No default configuration file name in Message-Id: <20071024171119.33e90128@hyperion.delvare> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lm-sensors@vger.kernel.org "sensord" no longer needs a default configuration file name. If no file name is provided on the command line, use the libsensors default. --- prog/sensord/args.c | 8 +++----- prog/sensord/lib.c | 8 ++++---- prog/sensord/sensord.8 | 4 ++-- 3 files changed, 9 insertions(+), 11 deletions(-) --- lm-sensors-3.orig/prog/sensord/args.c 2007-10-24 16:21:23.000000000 +0200 +++ lm-sensors-3/prog/sensord/args.c 2007-10-24 16:22:57.000000000 +0200 @@ -30,12 +30,10 @@ #include "lib/error.h" #include "version.h" -#define DEFAULT_CONFIG_FILE ETCDIR "/sensors.conf" - #define MAX_CHIP_NAMES 32 int isDaemon = 0; -const char *sensorsCfgFile = DEFAULT_CONFIG_FILE; +const char *sensorsCfgFile = NULL; const char *pidFile = "/var/run/sensord.pid"; const char *rrdFile = NULL; const char *cgiDir = NULL; @@ -104,7 +102,7 @@ static const char *daemonSyntax " -t, --rrd-interval