setdefaddr: change variable type to int