static char *hostdot, name[MAXHOSTNAMELEN];
hostconv(char *arg){	static int first = 1;	static char *hostdot, name[MAXHOSTNAMELEN];	char *argdot;	if (!(argdot = strchr(arg, '.')))		return;	if (first) {		first = 0;		if (gethostname(name, sizeof(name)))			err(1, "gethostname");		hostdot = strchr(name, '.');	}	if (hostdot && !strcasecmp(hostdot, argdot))		*argdot = '\0';}