Slightly better fix for warnings in utils.c