Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Added host keyed stream support
[palacios.git] / palacios / src / palacios / vmm_file.c
index e0e9a54..f2e191a 100644 (file)
@@ -35,9 +35,9 @@ void V3_Init_File(struct v3_file_hooks * hooks) {
 
 
 v3_file_t v3_file_open(struct v3_vm_info * vm, char * path, uint8_t mode) {
+    void * priv_data = NULL;
     V3_ASSERT(file_hooks);
     V3_ASSERT(file_hooks->open);
-    void * priv_data = NULL;
     
     if (vm) {
        priv_data = vm->host_priv_data;
@@ -48,7 +48,7 @@ v3_file_t v3_file_open(struct v3_vm_info * vm, char * path, uint8_t mode) {
 
 int v3_file_close(v3_file_t file) {
     V3_ASSERT(file_hooks);
-    V3_ASSERT(file_hooks->open);
+    V3_ASSERT(file_hooks->close);
     
     return file_hooks->close(file);
 }