cursor: fix warning with -Wshadow on older RHEL