changeset 12:4e34b48bf7c7

fix
author taiki
date Mon, 11 Nov 2013 09:36:21 -1000
parents 422041acef4c
children 96ae34f2f809
files ie-vagrant.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ie-vagrant.c	Mon Nov 11 09:33:36 2013 -1000
+++ b/ie-vagrant.c	Mon Nov 11 09:36:21 2013 -1000
@@ -30,6 +30,8 @@
 #define destroy_command "destroy"
 #define ssh_command "ssh"
 
+#define NEW(type)  ((type*)malloc(sizeof(type)))
+
 /* Define global variables */
 
 void 
@@ -84,7 +86,7 @@
    perror("Execl:");
   }
  } else if ( strncmp(argv[1], "destroy", 4) == 0 ) {
-  if (execl(command, command, stop_command, NULL) < 0) {
+  if (execl(command, command, destroy_command, NULL) < 0) {
    perror("Execl:");
   }
  } else if ( strncmp(argv[1], "up", 2) == 0 ) {