log(L_DEBUG, "major=%d, minor=%d", x, y);
static int get_version(char *p, struct request *r){	unsigned int x, y;	char *s;	s = strchr(p, '.');	if (s == 0)		return -1;	*s++ = '\0';	x = atoi(p);	y = atoi(s);	log(L_DEBUG, "major=%d, minor=%d", x, y);	if (x != 1 || y > 1) {		log(L_ERROR, "unsupported HTTP version (%d.%d) from %s",		    x, y, r->cn->ip);		return -1;	}	r->protocol_major = x;	r->protocol_minor = y;	return 0;}