return makes integer from pointer without a cast

join shbcf.ru