This reverts commit e5752ff9b3. The variables i and n are used in the `#if !__GLIBC_PREREQ(2, 7)` branch. Closes gh-1586.
e5752ff9b3