int ipw2100_get_fwversion(struct ipw2100_priv *priv, char *buf, size_t max) 
static int ipw2100_get_fwversion(struct ipw2100_priv *priv, char *buf, size_t max) 
int ipw2100_get_fwversion(struct ipw2100_priv *priv, char *buf, size_t max){	char ver[MAX_FW_VERSION_LEN];	u32 len = MAX_FW_VERSION_LEN;	u32 tmp;	int i;	/* firmware version is an ascii string (max len of 14) */	if (ipw2100_get_ordinal(priv, IPW_ORD_STAT_FW_VER_NUM,				ver, &len))		return -EIO;	tmp = max;	if (len >= max)		len = max - 1;	for (i = 0; i < len; i++)		buf[i] = ver[i];	buf[i] = '\0';	return tmp;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c4aee8c21ff5d8d6f9a27112468f5e840d5ced1b/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c