X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fnotlist.c;h=0341c159167836661e2d3027279bc7e3a4a86dba;hp=1698c26abef92166941dc39eba066b879422957c;hb=05f93b531d59df6e976d9b40c97b51546524040a;hpb=6080a2854af9c12a5794a389e98f0cd4d3942a6c diff --git a/utils/statd/notlist.c b/utils/statd/notlist.c index 1698c26..0341c15 100644 --- a/utils/statd/notlist.c +++ b/utils/statd/notlist.c @@ -17,7 +17,6 @@ #endif #include -#include "misc.h" #include "statd.h" #include "notlist.h" @@ -190,7 +189,6 @@ nlist_clone(notify_list *entry) NL_MY_PROG(new) = NL_MY_PROG(entry); NL_MY_VERS(new) = NL_MY_VERS(entry); NL_MY_PROC(new) = NL_MY_PROC(entry); - NL_ADDR(new) = NL_ADDR(entry); memcpy(NL_PRIV(new), NL_PRIV(entry), SM_PRIV_SIZE); return new; @@ -234,7 +232,8 @@ nlist_gethost(notify_list *list, char *host, int myname) notify_list *lp; for (lp = list; lp; lp = lp->next) { - if (matchhostname(host, myname? NL_MY_NAME(lp) : NL_MON_NAME(lp))) + if (statd_matchhostname(host, + myname? NL_MY_NAME(lp) : NL_MON_NAME(lp))) return lp; }