hw/xwin: Fix using system as a local variable in winCheckMount() shadows system()
Using system as local variable in winCheckMount() shadows the global declaration of system() from stdlib.h InitOutput.c: In function ‘winCheckMount’: InitOutput.c:296:10: error: declaration of ‘system’ shadows a global declaration Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
		
							parent
							
								
									17d84c743d
								
							
						
					
					
						commit
						5b0435dbda
					
				| 
						 | 
				
			
			@ -299,11 +299,11 @@ winCheckMount(void)
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    while ((ent = getmntent(mnt)) != NULL) {
 | 
			
		||||
        BOOL system = (winCheckMntOpt(ent, "user") != NULL);
 | 
			
		||||
        BOOL sys = (winCheckMntOpt(ent, "user") != NULL);
 | 
			
		||||
        BOOL root = (strcmp(ent->mnt_dir, "/") == 0);
 | 
			
		||||
        BOOL tmp = (strcmp(ent->mnt_dir, "/tmp") == 0);
 | 
			
		||||
 | 
			
		||||
        if (system) {
 | 
			
		||||
        if (sys) {
 | 
			
		||||
            if (root)
 | 
			
		||||
                curlevel = sys_root;
 | 
			
		||||
            else if (tmp)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue