aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_internal.h
diff options
context:
space:
mode:
authorIan Jackson <ian.jackson@eu.citrix.com>2013-10-11 12:10:45 +0100
committerIan Jackson <Ian.Jackson@eu.citrix.com>2013-10-11 15:50:21 +0100
commit6ed09e37722f601661fff42f80279a41773c574e (patch)
tree622e5eff9a96bba5e970bfdd592979cbb4c516b2 /tools/libxl/libxl_internal.h
parent6fd9b0361e2eb5a7f12bdd5cbf7e42c0d1937d26 (diff)
downloadxen-6ed09e37722f601661fff42f80279a41773c574e.tar.gz
xen-6ed09e37722f601661fff42f80279a41773c574e.tar.bz2
xen-6ed09e37722f601661fff42f80279a41773c574e.zip
libxl: make libxl__poller_put tolerate p==NULL
This is less fragile, and more in keeping with the usual style of initialising everything to 0 and freeing things unconditionally. Correspondingly, remove the tests at the call sites. Apropos of c1f3f174. No overall functional change. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_internal.h')
-rw-r--r--tools/libxl/libxl_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index 4e1505503c..165dc00287 100644
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -829,7 +829,7 @@ _hidden void libxl__poller_dispose(libxl__poller *p);
* away again afterwards. _get can fail, returning NULL.
* ctx must be locked. */
_hidden libxl__poller *libxl__poller_get(libxl_ctx *ctx);
-_hidden void libxl__poller_put(libxl_ctx *ctx, libxl__poller *p);
+_hidden void libxl__poller_put(libxl_ctx*, libxl__poller *p /* may be NULL */);
/* Notifies whoever is polling using p that they should wake up.
* ctx must be locked. */