From 7ea026e332192ebba4c634c93fed6e02bfb7f89e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 14 Mar 2013 20:14:19 +1100 Subject: lib/util: Cast mode_t result to unsigned int for GNU/Solaris build Reviewed-by: Jeremy Allison --- lib/util/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/util') diff --git a/lib/util/util.c b/lib/util/util.c index 464fc62e1f..7962c1e2ea 100644 --- a/lib/util/util.c +++ b/lib/util/util.c @@ -235,7 +235,7 @@ _PUBLIC_ bool directory_create_or_exist_strict(const char *dname, if ((st.st_mode & 0777) != dir_perms) { DEBUG(0, ("invalid permissions on directory " "'%s': has 0%o should be 0%o\n", dname, - (st.st_mode & 0777), dir_perms)); + (unsigned int)(st.st_mode & 0777), (unsigned int)dir_perms)); return false; } -- cgit