summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2015-01-23 08:58:05 -0500
committerSteve Dickson <steved@redhat.com>2015-01-23 08:58:05 -0500
commit178ae731618d46b5df1ab227dfa0c96920c675df (patch)
treeade358a88ec03182522eb08676a3f0c0f1d7bbd3
parentac201cca3fe0f3530fe252e269d4b3dc662a77dc (diff)
downloadnfs-utils-178ae731618d46b5df1ab227dfa0c96920c675df.tar.gz
nfs-utils-178ae731618d46b5df1ab227dfa0c96920c675df.tar.xz
nfs-utils-178ae731618d46b5df1ab227dfa0c96920c675df.zip
rpc.idmap: Use event_initialized() to check if event is initialized
Using EVLIST_INIT directly is bound to break. This seems to be a leftover from legacy code. Reported-by: Holger Hoffstatte <holger.hoffstaette@googlemail.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/idmapd/idmapd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c
index c02849b..4246466 100644
--- a/utils/idmapd/idmapd.c
+++ b/utils/idmapd/idmapd.c
@@ -716,7 +716,7 @@ nfsdreopen_one(struct idmap_client *ic)
xlog_warn("ReOpening %s", ic->ic_path);
if ((fd = open(ic->ic_path, O_RDWR, 0)) != -1) {
- if ((ic->ic_event.ev_flags & EVLIST_INIT))
+ if ((event_initialized(&ic->ic_event)))
event_del(&ic->ic_event);
if (ic->ic_fd != -1)
close(ic->ic_fd);