This is an automated email from Gerrit.

Paul Fertser ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/1371

-- gerrit

commit ef23007902db6ca38818f121e9679e7d657ec669
Author: Paul Fertser <[email protected]>
Date:   Tue Apr 30 00:51:01 2013 +0400

    remote_bitbang: fix FTBFS on ARM due to alignment issues
    
    This fixes the following error:
    remote_bitbang.c:166:19: error: cast increases required alignment of target 
type [-Werror=cast-align]
    
    Compile-tested only.
    
    Change-Id: I1b8bf27e722a65c29fd55d6668537cfeaed4b352
    Signed-off-by: Paul Fertser <[email protected]>

diff --git a/src/jtag/drivers/remote_bitbang.c 
b/src/jtag/drivers/remote_bitbang.c
index f6691bb..70e3d96 100644
--- a/src/jtag/drivers/remote_bitbang.c
+++ b/src/jtag/drivers/remote_bitbang.c
@@ -163,7 +163,7 @@ static int remote_bitbang_init_tcp(void)
        struct sockaddr_in addr;
        addr.sin_family = AF_INET;
        addr.sin_port = htons(remote_bitbang_port);
-       addr.sin_addr = *(struct in_addr *)hent->h_addr;
+       memcpy(&addr.sin_addr, hent->h_addr, sizeof(struct in_addr));
        if (connect(fd, (struct sockaddr *)&addr, sizeof(struct sockaddr_in)) < 
0) {
                LOG_ERROR("connect: %s", strerror(errno));
                return ERROR_FAIL;

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to