]> arthur.barton.de Git - netdata.git/blobdiff - src/proc_net_dev.c
convert plugin_proc to heartbeat API
[netdata.git] / src / proc_net_dev.c
index 69ded9d2c4a16570310459eabdb837075de00f62..21f78dd17034e5f2d2efb8c6dcfe47fa2c6a3e27 100644 (file)
@@ -77,7 +77,7 @@ static struct netdev *get_netdev(const char *name) {
 
     // 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;
         }
@@ -85,7 +85,7 @@ static struct netdev *get_netdev(const char *name) {
 
     // 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;
         }
@@ -111,7 +111,6 @@ static struct netdev *get_netdev(const char *name) {
 
 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;