altos: fix functions calling pollchar to use 'int' to hold the value