diff --git a/daemon/ntfsclone.c b/daemon/ntfsclone.c index 2e481eb94..3c0d10fc5 100644 --- a/daemon/ntfsclone.c +++ b/daemon/ntfsclone.c @@ -26,8 +26,6 @@ #include #include -#include "read-file.h" - #include "daemon.h" #include "actions.h" #include "optgroups.h" @@ -39,7 +37,7 @@ read_error_file (char *error_file) size_t len; char *str; - str = read_file (error_file, &len); + str = read_whole_file (error_file, &len); if (str == NULL) { str = strdup ("(no error)"); if (str == NULL) diff --git a/daemon/tar.c b/daemon/tar.c index 300e99448..daad75a47 100644 --- a/daemon/tar.c +++ b/daemon/tar.c @@ -28,8 +28,6 @@ #include #include -#include "read-file.h" - #include "guestfs_protocol.h" #include "daemon.h" #include "actions.h" @@ -107,7 +105,7 @@ read_error_file (char *error_file) size_t len; char *str; - str = read_file (error_file, &len); + str = read_whole_file (error_file, &len); if (str == NULL) { str = strdup ("(no error)"); if (str == NULL)