xl: improve return and exit codes of memory related functions
authorHarmandeep Kaur <write.harmandeep@gmail.com>
Thu, 7 Apr 2016 10:38:09 +0000 (12:38 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 8 Apr 2016 14:07:17 +0000 (15:07 +0100)
commita47d28db7c9dad39ec138fd050e84710f7aa4e80
tree7871bd3d3a64ee804e8a639dd5f47c4e23644f01
parentf75f726a6ea0245b1e11dd006f8e5c296dfe92dd
xl: improve return and exit codes of memory related functions

by making them more consistent with other examples in xl.

While there, make freemem() of boolean return type, which
looks more natural, and add comment explaining why
parse_mem_size_kb() needs to diverge from the pattern.

Signed-off-by: Harmandeep Kaur <write.harmandeep@gmail.com>
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/xl_cmdimpl.c