vm: minor code cleanup

fix compile warnings
This commit is contained in:
Marek Marczykowski 2011-12-27 17:04:30 +01:00
parent dd77b90d42
commit 8397a0b20b

View File

@ -1,4 +1,5 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/wait.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
@ -48,7 +49,6 @@ void send_file_back(char * filename)
int int
main() main()
{ {
char cmdbuf[512];
struct stat stat_pre, stat_post; struct stat stat_pre, stat_post;
char *filename = get_filename(); char *filename = get_filename();
int child, status, log_fd; int child, status, log_fd;
@ -75,7 +75,7 @@ main()
setenv("HOME", "/home/user", 1); setenv("HOME", "/home/user", 1);
setenv("DISPLAY", ":0", 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"); perror("execl");
exit(1); exit(1);
default: default: