vm: minor code cleanup
fix compile warnings
This commit is contained in:
		
							parent
							
								
									b77e48f688
								
							
						
					
					
						commit
						ea8fc28384
					
				| @ -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: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski
						Marek Marczykowski