Cygwin: fix bumptious GCC 7 warnings

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2018-06-26 17:20:48 +02:00
parent 6c55be9dbb
commit 6497fdfaf4
2 changed files with 9 additions and 3 deletions

View File

@ -249,7 +249,7 @@ seminit(void)
for (i = 0; i < seminfo.semmni; i++)
{
char *buf = (char *) sys_malloc(16, M_SEM, M_WAITOK);
snprintf(buf, 16, "semid[%d]", i);
snprintf(buf, 16, "semid[%d]", (short) i);
mtx_init(&sema_mtx[i], buf, NULL, MTX_DEF);
}
for (i = 0; i < seminfo.semmnu; i++) {