aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2015-01-10 01:18:54 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-25 12:17:57 -0500
commitaba474b8185d60ca8cdbf3049fe6d655aa761e23 (patch)
tree4e96c422e6f6b247b913e012b2afd904672eef48 /tools
parent69258c058d0a7e0a6433dae7e336c316d28129fc (diff)
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: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/hv/hv_fcopy_daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c
index f437d739f37d..1a238726dda6 100644
--- a/tools/hv/hv_fcopy_daemon.c
+++ b/tools/hv/hv_fcopy_daemon.c
@@ -51,7 +51,7 @@ static int hv_start_fcopy(struct hv_start_fcopy *smsg)
51 51
52 p = (char *)smsg->path_name; 52 p = (char *)smsg->path_name;
53 snprintf(target_fname, sizeof(target_fname), "%s/%s", 53 snprintf(target_fname, sizeof(target_fname), "%s/%s",
54 (char *)smsg->path_name, smsg->file_name); 54 (char *)smsg->path_name, (char *)smsg->file_name);
55 55
56 syslog(LOG_INFO, "Target file name: %s", target_fname); 56 syslog(LOG_INFO, "Target file name: %s", target_fname);
57 /* 57 /*
@@ -137,7 +137,7 @@ void print_usage(char *argv[])
137 137
138int main(int argc, char *argv[]) 138int main(int argc, char *argv[])
139{ 139{
140 int fd, fcopy_fd, len; 140 int fcopy_fd, len;
141 int error; 141 int error;
142 int daemonize = 1, long_index = 0, opt; 142 int daemonize = 1, long_index = 0, opt;
143 int version = FCOPY_CURRENT_VERSION; 143 int version = FCOPY_CURRENT_VERSION;