[git commit] ftpd: fix aliasing warning from gcc-6.1.1

Denys Vlasenko vda.linux at googlemail.com
Sun Feb 4 22:55:14 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=f75a7c04397b8b3409b5c4f5a4438654b6b830ce
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/ftpd.c | 4 ++--
 1 file 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)
 static void
 cmdio_write_ok(unsigned status)
 {
-	*(uint32_t *) G.msg_ok = status;
+	*(bb__aliased_uint32_t *) G.msg_ok = status;
 	xwrite(STDOUT_FILENO, G.msg_ok, sizeof("NNN " MSG_OK) - 1);
 	if (G.verbose > 1)
 		verbose_log(G.msg_ok);
@@ -273,7 +273,7 @@ cmdio_write_ok(unsigned status)
 static void
 cmdio_write_error(unsigned status)
 {
-	*(uint32_t *) G.msg_err = status;
+	*(bb__aliased_uint32_t *) G.msg_err = status;
 	xwrite(STDOUT_FILENO, G.msg_err, sizeof("NNN " MSG_ERR) - 1);
 	if (G.verbose > 0)
 		verbose_log(G.msg_err);


More information about the busybox-cvs mailing list