From 8397a0b20be362c0ae9bfbcccc901822a30d596c Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 27 Dec 2011 17:04:30 +0100 Subject: [PATCH] vm: minor code cleanup fix compile warnings --- appvm/vm-file-editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appvm/vm-file-editor.c b/appvm/vm-file-editor.c index dc72f3b..86956e8 100644 --- a/appvm/vm-file-editor.c +++ b/appvm/vm-file-editor.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -48,7 +49,6 @@ void send_file_back(char * filename) int main() { - char cmdbuf[512]; struct stat stat_pre, stat_post; char *filename = get_filename(); int child, status, log_fd; @@ -75,7 +75,7 @@ main() setenv("HOME", "/home/user", 1); setenv("DISPLAY", ":0", 1); - execl("/usr/bin/mimeopen", "mimeopen", "-n", "-M", filename); + execl("/usr/bin/mimeopen", "mimeopen", "-n", "-M", filename, (char*)NULL); perror("execl"); exit(1); default: