daemon: Link guestfsd with libutils.

After the previous refactoring, we are able to link the daemon to
common/utils, and also remove some of the "duplicate" functions that
the daemon carried ("duplicate" in quotes because they were often not
exact duplicates).

Also this removes the duplicate reimplementation of (most) cleanup
functions in the daemon, since those are provided by libutils now.

It also allows us in future (but not in this commit) to move utility
functions from the daemon into libutils.
This commit is contained in:
Richard W.M. Jones
2017-06-08 17:14:55 +01:00
parent e6c89f9631
commit 707f5bcfe0
15 changed files with 52 additions and 200 deletions

View File

@@ -127,7 +127,7 @@ do_internal_lstatnslist (const char *path, char *const *names)
guestfs_int_statns_list *ret;
size_t i, nr_names;
nr_names = count_strings (names);
nr_names = guestfs_int_count_strings (names);
ret = malloc (sizeof *ret);
if (!ret) {