I was compiled zaptel drivers on NetBSD 4.0.1 and have got warnings, listen below…
/usr/src/sys/dev/zaptel/wcfxo/wcfxo.c:116: warning: initialization discards qualifiers from pointer target type
/usr/src/sys/dev/zaptel/wcfxo/wcfxo.c:119: warning: initialization discards qualifiers from pointer target type
/usr/src/sys/dev/zaptel/wcfxo/wcfxo.c:122: warning: initialization discards qualifiers from pointer target type
I try to fix it, but anyway don’t been successful.
115:/* descriptions for the boards which might match */
116:static struct wcfxo_desc wcx100p = { "Wildcard X100P",
117://const struct wcfxo_desc wcx100p = { "Wildcard X100P",
118: FLAG_INVERTSER | FLAG_USE_XTAL | FLAG_DOUBLE_CLOCK };
119:static const struct wcfxo_desc wcx101p = { "Wildcard X101P",
120://const struct wcfxo_desc wcx101p = { "Wildcard X101P",
121: FLAG_USE_XTAL | FLAG_DOUBLE_CLOCK };
122:static const struct wcfxo_desc generic = { "Generic X100P Clone",
123://const struct wcfxo_desc generic = { "Generic X100P Clone",
124: FLAG_USE_XTAL | FLAG_DOUBLE_CLOCK };
The structure to use with it the next definition.
struct wcfxo_desc {
const char *name;
unsigned long flags;
};
I want give any successful to work fix it. And I hope what anybody can help me.
Thanks in advance.