aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-02-04 23:55:14 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-02-04 23:55:14 +0100
commitf75a7c04397b8b3409b5c4f5a4438654b6b830ce (patch)
tree503f764254a1e2009a94def59e4367efecb43d40
parent05b84d4e92b79fa47259907a78d8375bb5490135 (diff)
downloadbusybox-w32-f75a7c04397b8b3409b5c4f5a4438654b6b830ce.tar.gz
busybox-w32-f75a7c04397b8b3409b5c4f5a4438654b6b830ce.tar.bz2
busybox-w32-f75a7c04397b8b3409b5c4f5a4438654b6b830ce.zip
ftpd: fix aliasing warning from gcc-6.1.1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/ftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index 833507ba1..dd0fc4e92 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -262,7 +262,7 @@ cmdio_write(uint32_t status_str, const char *str)
262static void 262static void
263cmdio_write_ok(unsigned status) 263cmdio_write_ok(unsigned status)
264{ 264{
265 *(uint32_t *) G.msg_ok = status; 265 *(bb__aliased_uint32_t *) G.msg_ok = status;
266 xwrite(STDOUT_FILENO, G.msg_ok, sizeof("NNN " MSG_OK) - 1); 266 xwrite(STDOUT_FILENO, G.msg_ok, sizeof("NNN " MSG_OK) - 1);
267 if (G.verbose > 1) 267 if (G.verbose > 1)
268 verbose_log(G.msg_ok); 268 verbose_log(G.msg_ok);
@@ -273,7 +273,7 @@ cmdio_write_ok(unsigned status)
273static void 273static void
274cmdio_write_error(unsigned status) 274cmdio_write_error(unsigned status)
275{ 275{
276 *(uint32_t *) G.msg_err = status; 276 *(bb__aliased_uint32_t *) G.msg_err = status;
277 xwrite(STDOUT_FILENO, G.msg_err, sizeof("NNN " MSG_ERR) - 1); 277 xwrite(STDOUT_FILENO, G.msg_err, sizeof("NNN " MSG_ERR) - 1);
278 if (G.verbose > 0) 278 if (G.verbose > 0)
279 verbose_log(G.msg_err); 279 verbose_log(G.msg_err);