master - fix: ambiguity in log_sys_error call from previous commit
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=f1dc4d3d81456d506b2c56fb2e8b12106cbd9e16 Commit: f1dc4d3d81456d506b2c56fb2e8b12106cbd9e16 Parent: 0563bd0037610397c5838d0172fd1c913c62c187 Author: Peter Rajnoha <[email protected]> AuthorDate: Thu Aug 15 12:40:47 2013 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Thu Aug 15 12:50:58 2013 +0200
fix: ambiguity in log_sys_error call from previous commit
libdm-common.c:883:42: warning: pointer/integer type mismatch in conditional expression
define log_sys_error(x, y) log_err("%s%s%s failed: %s", y, *y ? ": " : "", x, strerror(errno))
So the "y" which was 'path ? : "SELinux context reset"' from previous commit did not quite fit the other "? :" in the log_sys_macro.
--- libdm/libdm-common.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
libdm/libdm-common.c +1 -1
@@ -880,7 +880,7 @@ int dm_prepare_selinux_context(const char *path, mode_t mode)log_debug_activation ("Resetting SELinux context to default value." );if (setfscreatecon (scontext) <0 ) { -log_sys_error ("setfscreatecon" , path ? :"SELinux context reset" ); +log_sys_error ("setfscreatecon" , (path ? :"SELinux context reset" ));freecon (scontext);return 0 ; }