]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/tests/getkeys.c
adjust include statements (v2)
[mirror_lxc.git] / src / tests / getkeys.c
index 9bb559395544ac5701811a9405d9f096c6ec330c..ed68440b75e071b4a3f1e8416d5b4903b1a8898b 100644 (file)
@@ -16,7 +16,7 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#include "../lxc/lxccontainer.h"
+#include <lxc/lxccontainer.h>
 
 #include <unistd.h>
 #include <signal.h>
@@ -25,7 +25,7 @@
 #include <sys/wait.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <lxc/state.h>
+#include "lxc/state.h"
 
 #define MYNAME "lxctest1"
 
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
        int len, ret;
        char v3[2048];
 
-       if ((c = lxc_container_new(MYNAME)) == NULL) {
+       if ((c = lxc_container_new(MYNAME, NULL)) == NULL) {
                fprintf(stderr, "%d: error opening lxc_container %s\n", __LINE__, MYNAME);
                ret = 1;
                goto out;
@@ -64,6 +64,7 @@ int main(int argc, char *argv[])
                goto out;
        }
        printf("get_keys for nic 1 returned %d\n%s", ret, v3);
+       ret = 0;
 
 out:
        lxc_container_put(c);