// search it, from the last position to the end
for(d = last ; d ; d = d->next) {
- if(unlikely(hash == d->hash && !strsame(name, d->name))) {
+ if(unlikely(hash == d->hash && !strcmp(name, d->name))) {
last = d->next;
return d;
}
// search it from the beginning to the last position we used
for(d = netdev_root ; d != last ; d = d->next) {
- if(unlikely(hash == d->hash && !strsame(name, d->name))) {
+ if(unlikely(hash == d->hash && !strcmp(name, d->name))) {
last = d->next;
return d;
}
int do_proc_net_dev(int update_every, usec_t dt) {
(void)dt;
-
static SIMPLE_PATTERN *disabled_list = NULL;
static procfile *ff = NULL;
static int enable_new_interfaces = -1;