diff --git a/drivers/dahdi/xpp/card_pri.c b/drivers/dahdi/xpp/card_pri.c index 29b457b..edc8bd2 100644 --- a/drivers/dahdi/xpp/card_pri.c +++ b/drivers/dahdi/xpp/card_pri.c @@ -2399,11 +2399,11 @@ static DEVICE_ATTR_WRITER(pri_protocol_store, dev, buf, count) buf, i); return -EINVAL; } - if (strnicmp(buf, "E1", 2) == 0) + if (strncasecmp(buf, "E1", 2) == 0) new_protocol = PRI_PROTO_E1; - else if (strnicmp(buf, "T1", 2) == 0) + else if (strncasecmp(buf, "T1", 2) == 0) new_protocol = PRI_PROTO_T1; - else if (strnicmp(buf, "J1", 2) == 0) + else if (strncasecmp(buf, "J1", 2) == 0) new_protocol = PRI_PROTO_J1; else { XPD_NOTICE(xpd, diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 54c415e..90d48a3 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1502,6 +1502,8 @@ void dahdi_pci_disable_link_state(struct pci_dev *pdev, int state); #define list_first_entry(ptr, type, member) \ list_entry((ptr)->next, type, member) +#define strncasecmp strnicmp + #ifndef __packed #define __packed __attribute__((packed)) #endif