another warning squash
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
Wouldn't this create another warning at line 112 because 'devspec' is a const and is now assigned to a non-const variable?
np = (devspec + strlen(dv->dv_name));
Comment Actions
Instead of changing the qualifier on np to non-const, change the assignment of the pointer to cp
with a cast of np to remove the const. This lets the compiler know we looked at it.