better config file handling
[project/uci.git] / test.c
diff --git a/test.c b/test.c
index 9b0b106..caf773b 100644 (file)
--- a/test.c
+++ b/test.c
@@ -1,5 +1,4 @@
 /*
- * libuci - Library for the Unified Configuration Interface
  * Copyright (C) 2008 Felix Fietkau <nbd@openwrt.org>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -11,7 +10,7 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */
-#include "libuci.h"
+#include "uci.h"
 
 int main(int argc, char **argv)
 {
@@ -21,11 +20,11 @@ int main(int argc, char **argv)
                fprintf(stderr, "Failed to allocate uci context");
                return 1;
        }
-       
-       if (uci_parse(ctx, argv[1])) {
+
+       if (uci_load(ctx, argv[1])) {
                uci_perror(ctx, "uci_parse");
                return 1;
        }
-       
+
        return 0;
 }