projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69258c0
)
Tools: hv: address compiler warnings for hv_fcopy_daemon.c
author
Vitaly Kuznetsov
<
[email protected]
>
Sat, 10 Jan 2015 06:18:54 +0000
(22:18 -0800)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sun, 25 Jan 2015 17:17:57 +0000
(09:17 -0800)
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 <
[email protected]
>
Signed-off-by: K. Y. Srinivasan <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
tools/hv/hv_fcopy_daemon.c
patch
|
blob
|
history
diff --git
a/tools/hv/hv_fcopy_daemon.c
b/tools/hv/hv_fcopy_daemon.c
index f437d739f37da6fca68165b983e4137c2622f317..1a238726dda675266264e2b0ec8052c91d784121 100644
(file)
--- 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)
p = (char *)smsg->path_name;
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);
/*
@@
-137,7
+137,7
@@
void print_usage(char *argv[])
int main(int argc, char *argv[])
{
- int f
d, f
copy_fd, len;
+ int fcopy_fd, len;
int error;
int daemonize = 1, long_index = 0, opt;
int version = FCOPY_CURRENT_VERSION;