target.c (GOMP_offload_register): Use int for device type arg.