[hipl-commit] [trunk] Rev 4534: Move HOSTS_FILE definition to the only place it is used.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Mon, 17 May 2010 01:16:52 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 17/05/2010 at 01:16:52
Revision: 4534
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Move HOSTS_FILE definition to the only place it is used.

Modified:
  M  lib/conf/conf.h
  M  lib/core/hostsfiles.c

=== modified file 'lib/conf/conf.h'
--- lib/conf/conf.h     2010-05-16 21:44:40 +0000
+++ lib/conf/conf.h     2010-05-16 22:16:39 +0000
@@ -71,7 +71,6 @@
 #nat port peer 22222 # change local peer UDP port\n\
 debug medium        # debug verbosity: all, medium or none\n"
 
-#define HOSTS_FILE "/etc/hosts"
 #define HIPL_HOSTS_FILE_EX \
     "# This file stores the HITs of the hosts, in a similar fashion to 
/etc/hosts.\n\
 # The aliases are optional.  Examples:\n\

=== modified file 'lib/core/hostsfiles.c'
--- lib/core/hostsfiles.c       2010-05-16 17:58:14 +0000
+++ lib/core/hostsfiles.c       2010-05-16 22:16:39 +0000
@@ -27,6 +27,10 @@
 #include "hostsfiles.h"
 #include "lib/tool/lutil.h"
 
+
+#define HOSTS_FILE "/etc/hosts"
+
+
 /**
  * A "for-each" iterator function for hosts files that returns the first
  * hostname that matches the given address

Other related posts:

  • » [hipl-commit] [trunk] Rev 4534: Move HOSTS_FILE definition to the only place it is used. - Diego Biurrun