From: Alexander Traud Date: Thu, 21 Jun 2018 10:04:46 +0000 (+0200) Subject: func_env: Compile in Solaris 11. X-Git-Tag: 15.5.0-rc1~19^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16838b544ed17ac41287703cf5d2a94ebc11b35b;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 1b11b1fa7c..861adebae0 100644 --- a/funcs/func_env.c +++ b/funcs/func_env.c @@ -307,7 +307,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; } }