xselinux: warning fix
../Xext/xselinux_ext.c: In function ‘SELinuxExtensionInit’: ../Xext/xselinux_ext.c:692:21: warning: variable ‘extEntry’ set but not used [-Wunused-but-set-variable] Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
		
							parent
							
								
									f4115bcc8c
								
							
						
					
					
						commit
						047794e350
					
				|  | @ -689,8 +689,6 @@ SELinuxResetProc(ExtensionEntry * extEntry) | ||||||
| void | void | ||||||
| SELinuxExtensionInit(void) | SELinuxExtensionInit(void) | ||||||
| { | { | ||||||
|     ExtensionEntry *extEntry; |  | ||||||
| 
 |  | ||||||
|     /* Check SELinux mode on system, configuration file, and boolean */ |     /* Check SELinux mode on system, configuration file, and boolean */ | ||||||
|     if (!is_selinux_enabled()) { |     if (!is_selinux_enabled()) { | ||||||
|         LogMessage(X_INFO, "SELinux: Disabled on system\n"); |         LogMessage(X_INFO, "SELinux: Disabled on system\n"); | ||||||
|  | @ -710,8 +708,7 @@ SELinuxExtensionInit(void) | ||||||
|     SELinuxFlaskInit(); |     SELinuxFlaskInit(); | ||||||
| 
 | 
 | ||||||
|     /* Add extension to server */ |     /* Add extension to server */ | ||||||
|     extEntry = AddExtension(SELINUX_EXTENSION_NAME, |     AddExtension(SELINUX_EXTENSION_NAME, SELinuxNumberEvents, | ||||||
|                             SELinuxNumberEvents, SELinuxNumberErrors, |                  SELinuxNumberErrors, ProcSELinuxDispatch, | ||||||
|                             ProcSELinuxDispatch, SProcSELinuxDispatch, |                  SProcSELinuxDispatch, SELinuxResetProc, StandardMinorOpcode); | ||||||
|                             SELinuxResetProc, StandardMinorOpcode); |  | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue