[augeas-devel] [PATCH] Rename AUG_NO_DEFAULT_LOAD to AUG_NO_MODL_AUTOLOAD
David Lutterkort
lutter at redhat.com
Wed Mar 18 23:04:50 UTC 2009
---
src/augparse.c | 2 +-
src/internal.h | 5 ++---
src/syntax.c | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/augparse.c b/src/augparse.c
index c195411..fd7c25b 100644
--- a/src/augparse.c
+++ b/src/augparse.c
@@ -56,7 +56,7 @@ int main(int argc, char **argv) {
{ 0, 0, 0, 0}
};
int idx;
- unsigned int flags = AUG_TYPE_CHECK|AUG_NO_DEFAULT_LOAD;
+ unsigned int flags = AUG_TYPE_CHECK|AUG_NO_MODL_AUTOLOAD;
progname = argv[0];
while ((opt = getopt_long(argc, argv, "hI:", options, &idx)) != -1) {
diff --git a/src/internal.h b/src/internal.h
index 0b49f95..b689677 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -259,10 +259,9 @@ char* read_file(const char *path);
*/
const char *xstrerror(int errnum, char *buf, size_t len);
-/* Define: AUG_NO_DEFAULT_LOAD
- * A hidden flag used by augparse to suppress loading of all the modules
+/* A hidden flag used by augparse to suppress loading of all the modules
* on the path */
-#define AUG_NO_DEFAULT_LOAD (1 << 15)
+#define AUG_NO_MODL_AUTOLOAD (1 << 15)
/* Struct: augeas
* The data structure representing a connection to Augeas. */
diff --git a/src/syntax.c b/src/syntax.c
index 04a1a87..b450473 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1897,7 +1897,7 @@ int interpreter_init(struct augeas *aug) {
aug->modules = builtin_init();
- if (aug->flags & AUG_NO_DEFAULT_LOAD)
+ if (aug->flags & AUG_NO_MODL_AUTOLOAD)
return 0;
// For now, we just load every file on the search path
--
1.6.0.6
More information about the augeas-devel
mailing list