func_env: Compile in Solaris 11.
authorAlexander Traud <pabstraud@compuserve.com>
Thu, 21 Jun 2018 10:04:46 +0000 (12:04 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Thu, 21 Jun 2018 10:04:46 +0000 (12:04 +0200)
Change-Id: Idc9b36720f3d29c90a35a6a1ae79a7f9e1aaf50e

funcs/func_env.c

index 1b11b1f..861adeb 100644 (file)
@@ -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, "%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;
                }
        }
                        break;
                }
        }