Commit aba474b8 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Greg Kroah-Hartman

Tools: hv: address compiler warnings for hv_fcopy_daemon.c

This patch addresses two types of compiler warnings:
... warning: unused variable .fd. [-Wunused-variable]
and
... warning: format .%s. expects argument of type .char *., but argument 5 has type .__u16 *. [-Wformat=]
Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 69258c05
...@@ -51,7 +51,7 @@ static int hv_start_fcopy(struct hv_start_fcopy *smsg) ...@@ -51,7 +51,7 @@ static int hv_start_fcopy(struct hv_start_fcopy *smsg)
p = (char *)smsg->path_name; p = (char *)smsg->path_name;
snprintf(target_fname, sizeof(target_fname), "%s/%s", snprintf(target_fname, sizeof(target_fname), "%s/%s",
(char *)smsg->path_name, smsg->file_name); (char *)smsg->path_name, (char *)smsg->file_name);
syslog(LOG_INFO, "Target file name: %s", target_fname); syslog(LOG_INFO, "Target file name: %s", target_fname);
/* /*
...@@ -137,7 +137,7 @@ void print_usage(char *argv[]) ...@@ -137,7 +137,7 @@ void print_usage(char *argv[])
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
int fd, fcopy_fd, len; int fcopy_fd, len;
int error; int error;
int daemonize = 1, long_index = 0, opt; int daemonize = 1, long_index = 0, opt;
int version = FCOPY_CURRENT_VERSION; int version = FCOPY_CURRENT_VERSION;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment