From 7bbdb288ed26016701575db9b342ad5c40002a44 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 20 Mar 2012 18:25:43 +0000 Subject: [PATCH] Quick Updates svn path=/trunk/boinc/; revision=25464 --- samples/vboxwrapper/vbox.cpp | 1 - samples/vboxwrapper/vboxwrapper.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/samples/vboxwrapper/vbox.cpp b/samples/vboxwrapper/vbox.cpp index f73299ce3c..32e1b3058c 100644 --- a/samples/vboxwrapper/vbox.cpp +++ b/samples/vboxwrapper/vbox.cpp @@ -273,7 +273,6 @@ int VBOX_VM::start() { int VBOX_VM::stop() { string command; string output; - double timeout; char buf[256]; int retval = 0; diff --git a/samples/vboxwrapper/vboxwrapper.cpp b/samples/vboxwrapper/vboxwrapper.cpp index 9febb84c6f..b8cf4cc786 100644 --- a/samples/vboxwrapper/vboxwrapper.cpp +++ b/samples/vboxwrapper/vboxwrapper.cpp @@ -692,8 +692,8 @@ int main(int argc, char** argv) { write_checkpoint(elapsed_time, vm); if (vm.enable_cern_dataformat) { - FILE* output = fopen("output"); - if (f) { + FILE* output = fopen("output", "w"); + if (output) { fprintf( output, "Work Unit completed!\n"