* 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>
#include <sys/wait.h>
#include <stdlib.h>
#include <errno.h>
-#include <lxc/state.h>
+#include "lxc/state.h"
#define MYNAME "lxctest1"
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;
goto out;
}
printf("get_keys for nic 1 returned %d\n%s", ret, v3);
+ ret = 0;
out:
lxc_container_put(c);