xl: Make set_memory_target return an error code on failure
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 24 Mar 2016 17:17:23 +0000 (17:17 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 25 Mar 2016 19:51:15 +0000 (15:51 -0400)
commit0614c454209ac67016e2296577abfee9e9dcb012
tree0095e591176e85f3ffc42158c8ce5c8db8ef34a6
parent26dbc93a9205e4a08fe12aac3efed980ae3e1ce5
xl: Make set_memory_target return an error code on failure

Also move the rc -> shell code translation into set_memory_max() to
make the two functions consistent with each other, and with other
similar examples in xl_cmdimpl.c

Change a 'long long' to "int64_t" while we're at it.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c