libxl: only read script once in libxl__hotplug_*
authorIan Campbell <ian.campbell@citrix.com>
Fri, 3 Aug 2012 08:54:06 +0000 (09:54 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 3 Aug 2012 08:54:06 +0000 (09:54 +0100)
commitf9e84f5c78248b39f2ac885de6efa8f025ccfa50
tree282b2cebaaf3b80df1269001c535b381b5b96aba
parent01580ccdb2063766ad4570ac1f16115b0f94007e
libxl: only read script once in libxl__hotplug_*

instead of duplicating the error handling etc in get_hotplug_env just pass the
script already read by the caller down.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_linux.c