[Libvirt-cim] [PATCH] Remove fopen() from out in KVMRedirectionSAP

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Thu Jan 22 00:50:52 UTC 2009


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1232584945 28800
# Node ID 1efa2d18e09bb7851ca70ca0112d8363190e81d1
# Parent  6fa1f52dc8298b4d643fc94bb3f91715cc40dd58
Remove fopen() from out in KVMRedirectionSAP

The file is already open, we just need to close it.

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r 6fa1f52dc829 -r 1efa2d18e09b src/Virt_KVMRedirectionSAP.c
--- a/src/Virt_KVMRedirectionSAP.c	Tue Jan 20 22:27:01 2009 -0800
+++ b/src/Virt_KVMRedirectionSAP.c	Wed Jan 21 16:42:25 2009 -0800
@@ -213,7 +213,6 @@
         }
 
  out:
-        tcp_info = fopen(path, "r");
         fclose(tcp_info);
         return s;
 }




More information about the Libvirt-cim mailing list