From: Alexander Traud Date: Thu, 21 Jun 2018 10:04:46 +0000 (+0200) Subject: func_env: Compile in Solaris 11. X-Git-Tag: 13.22.0-rc1~17^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3c090adaf356db8a34d863c2165737b89b176f;p=thirdparty%2Fasterisk.git func_env: Compile in Solaris 11. Change-Id: Idc9b36720f3d29c90a35a6a1ae79a7f9e1aaf50e --- diff --git a/funcs/func_env.c b/funcs/func_env.c index 072714f19b..9a564e1c4a 100644 --- a/funcs/func_env.c +++ b/funcs/func_env.c @@ -309,7 +309,7 @@ static int stat_read(struct ast_channel *chan, const char *cmd, char *data, snprintf(buf, len, "%d", (int) s.st_ctime); break; case 'm': - snprintf(buf, len, "%o", s.st_mode); + snprintf(buf, len, "%o", (unsigned int) s.st_mode); break; } }