This is an automated email from Gerrit.

Christian Eggers (cegg...@gmx.de) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/1923

-- gerrit

commit 12b0a2b58dd114652380bb1b1ffd5439c985a5f0
Author: Christian Eggers <cegg...@gmx.de>
Date:   Mon Feb 3 20:25:20 2014 +0100

    gdb_server: Remove unused parameter "annex" from decode_xfer_read()
    
    The (returned) parameter "annex" is not used in the calling function
    gdb_query_packet().
    This change is necessary in order to make packet[] "const".
    
    Change-Id: I95a89d2c443fe4124f2bb6c87f956a40f9959eeb
    Signed-off-by: Christian Eggers <cegg...@gmx.de>

diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index ad6c0b6..2f2d622 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -1659,12 +1659,11 @@ static void xml_printf(int *retval, char **xml, int 
*pos, int *size,
        }
 }
 
-static int decode_xfer_read(char *buf, char **annex, int *ofs, unsigned int 
*len)
+static int decode_xfer_read(char *buf, int *ofs, unsigned int *len)
 {
        char *separator;
 
        /* Extract and NUL-terminate the annex. */
-       *annex = buf;
        while (*buf && *buf != ':')
                buf++;
        if (*buf == '\0')
@@ -2360,12 +2359,11 @@ static int gdb_query_packet(struct connection 
*connection,
 
                int offset;
                unsigned int length;
-               char *annex;
 
                /* skip command character */
                packet += 20;
 
-               if (decode_xfer_read(packet, &annex, &offset, &length) < 0) {
+               if (decode_xfer_read(packet, &offset, &length) < 0) {
                        gdb_send_error(connection, 01);
                        return ERROR_OK;
                }

-- 

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to