server: fix minor typos
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 11 Jul 2020 22:33:29 +0000 (00:33 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 26 Jul 2020 19:14:00 +0000 (20:14 +0100)
Change-Id: Ibf835dc174a1a160ec0d57000a113c35f2713045
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5760
Tested-by: jenkins
src/server/gdb_server.c
src/server/server.c

index 17042fbf5ea350a0a886904da0ff358de8378c68..327d96b1772a4ba23135d1a450612f512fd04649 100644 (file)
@@ -68,7 +68,7 @@ struct target_desc_format {
 
 /* private connection data for GDB */
 struct gdb_connection {
-       char buffer[GDB_BUFFER_SIZE + 1]; /* Extra byte for nul-termination */
+       char buffer[GDB_BUFFER_SIZE + 1]; /* Extra byte for null-termination */
        char *buf_p;
        int buf_cnt;
        bool ctrl_c;
@@ -3221,7 +3221,7 @@ static void gdb_sig_halted(struct connection *connection)
 static int gdb_input_inner(struct connection *connection)
 {
        /* Do not allocate this on the stack */
-       static char gdb_packet_buffer[GDB_BUFFER_SIZE + 1]; /* Extra byte for nul-termination */
+       static char gdb_packet_buffer[GDB_BUFFER_SIZE + 1]; /* Extra byte for null-termination */
 
        struct target *target;
        char const *packet = gdb_packet_buffer;
@@ -3503,7 +3503,7 @@ static int gdb_target_start(struct target *target, const char *port)
        ret = add_service("gdb",
                        port, 1, &gdb_new_connection, &gdb_input,
                        &gdb_connection_closed, gdb_service);
-       /* initialialize all targets gdb service with the same pointer */
+       /* initialize all targets gdb service with the same pointer */
        {
                struct target_list *head;
                struct target *curr;
index 23a15ef9a37d6b2071d080e2f151e8a153633351..d96f0b6cf61b765b34ba22e06aec828c70640bb8 100644 (file)
@@ -325,7 +325,7 @@ int add_service(char *name,
 #endif
        } else if (c->type == CONNECTION_PIPE) {
 #ifdef _WIN32
-               /* we currenty do not support named pipes under win32
+               /* we currently do not support named pipes under win32
                 * so exit openocd for now */
                LOG_ERROR("Named pipes currently not supported under this os");
                free_service(c);