
23 Aug
2012
23 Aug
'12
5:45 p.m.
Hi Mike,
On Wed, Aug 22, 2012 at 10:17 PM, Mike Frysinger vapier@gentoo.org wrote:
On Friday 17 August 2012 16:49:35 Joe Hershberger wrote:
*/ #define CONFIG_FILE "/etc/fw_env.config"
+#ifndef CONFIG_FILE
this doesn't make any sense. CONFIG_FILE is defined literally right above this check.
The comment right above that says:
/* * To build the utility with the static configuration * comment out the next line. * See included "fw_env.config" sample file * for notes on configuration. */
...so the reason for the #ifndef is for the case where you comment out that line. The other option is to just delete all of that stuff and the user can add it all back if they want to operate with no config file.
-Joe