Converted to int posix_memalign