From ecab40da6a680df14b93d4cdb4019d508d462e4d Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 4 Jun 2017 12:22:33 -0400 Subject: [PATCH] remove extra semicolons --- examples/elf/tests/helloxx/hello++2.cpp | 6 +++--- examples/elf/tests/helloxx/hello++3.cpp | 6 +++--- examples/ltdc/dma2d.c | 2 +- examples/ltdc/ltdc_main.c | 2 +- examples/nxflat/tests/hello++/hello++2.cpp | 6 +++--- examples/nxflat/tests/hello++/hello++3.cpp | 6 +++--- examples/udp/udp-server.c | 2 +- modbus/ascii/mbascii.c | 2 +- modbus/functions/mbfunccoils.c | 2 +- modbus/functions/mbfuncdisc.c | 2 +- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/elf/tests/helloxx/hello++2.cpp b/examples/elf/tests/helloxx/hello++2.cpp index 5d4ba9923..b148989ca 100644 --- a/examples/elf/tests/helloxx/hello++2.cpp +++ b/examples/elf/tests/helloxx/hello++2.cpp @@ -104,12 +104,12 @@ int main(int argc, char **argv) // Tell MyThingSayer that "Hello, World!" is the string to be said - printf("main: Calling MyThingSayer->Initialize\n");; + printf("main: Calling MyThingSayer->Initialize\n"); MyThingSayer->Initialize("Hello, World!"); // Tell MyThingSayer to say the thing we told it to say - printf("main: Calling MyThingSayer->SayThing\n");; + printf("main: Calling MyThingSayer->SayThing\n"); MyThingSayer->SayThing(); // We should see the message from the destructor, @@ -118,6 +118,6 @@ int main(int argc, char **argv) printf("main: Destroying MyThingSayer\n"); delete MyThingSayer; - printf("main: Returning\n");; + printf("main: Returning\n"); return 0; } diff --git a/examples/elf/tests/helloxx/hello++3.cpp b/examples/elf/tests/helloxx/hello++3.cpp index 6661a3fd1..b59774cd4 100644 --- a/examples/elf/tests/helloxx/hello++3.cpp +++ b/examples/elf/tests/helloxx/hello++3.cpp @@ -114,12 +114,12 @@ int main(int argc, char **argv) // Tell MyThingSayer that "Hello, World!" is the string to be said - printf("main: Calling MyThingSayer.Initialize\n");; + printf("main: Calling MyThingSayer.Initialize\n"); MyThingSayer.Initialize("Hello, World!"); // Tell MyThingSayer to say the thing we told it to say - printf("main: Calling MyThingSayer.SayThing\n");; + printf("main: Calling MyThingSayer.SayThing\n"); MyThingSayer.SayThing(); // We are finished, return. We should see the message from the @@ -127,6 +127,6 @@ int main(int argc, char **argv) // message. That is proof that the C++ static destructor logic // is working - printf("main: Returning. MyThingSayer should be destroyed\n");; + printf("main: Returning. MyThingSayer should be destroyed\n"); return 0; } diff --git a/examples/ltdc/dma2d.c b/examples/ltdc/dma2d.c index ea3cc0be4..b1ffc2043 100644 --- a/examples/ltdc/dma2d.c +++ b/examples/ltdc/dma2d.c @@ -800,7 +800,7 @@ static void ltdc_dma2d_fillarea(void) active->vinfo.xres, active->vinfo.yres, ltdc_color(&active->vinfo, LTDC_BLACK)); - area.xpos = active->vinfo.xres/2;; + area.xpos = active->vinfo.xres/2; area.ypos = active->vinfo.yres/2; active->layer->fillarea(active->layer, &area, diff --git a/examples/ltdc/ltdc_main.c b/examples/ltdc/ltdc_main.c index 4c05f6587..0bc9290fc 100644 --- a/examples/ltdc/ltdc_main.c +++ b/examples/ltdc/ltdc_main.c @@ -1730,7 +1730,7 @@ FAR struct fb_cmap_s * ltdc_createcmap(uint16_t ncolors) { _err("ERROR: malloc() failed\n"); free(cmap); - return NULL;; + return NULL; } #ifdef CONFIG_FB_TRANSPARENCY diff --git a/examples/nxflat/tests/hello++/hello++2.cpp b/examples/nxflat/tests/hello++/hello++2.cpp index 1c5a11fc5..b386ba432 100644 --- a/examples/nxflat/tests/hello++/hello++2.cpp +++ b/examples/nxflat/tests/hello++/hello++2.cpp @@ -104,12 +104,12 @@ int main(int argc, char **argv) // Tell MyThingSayer that "Hello, World!" is the string to be said - printf("main: Calling MyThingSayer->Initialize\n");; + printf("main: Calling MyThingSayer->Initialize\n"); MyThingSayer->Initialize("Hello, World!"); // Tell MyThingSayer to say the thing we told it to say - printf("main: Calling MyThingSayer->SayThing\n");; + printf("main: Calling MyThingSayer->SayThing\n"); MyThingSayer->SayThing(); // We should see the message from the destructor, @@ -118,6 +118,6 @@ int main(int argc, char **argv) printf("main: Destroying MyThingSayer\n"); delete MyThingSayer; - printf("main: Returning\n");; + printf("main: Returning\n"); return 0; } diff --git a/examples/nxflat/tests/hello++/hello++3.cpp b/examples/nxflat/tests/hello++/hello++3.cpp index b115010cf..3741eecb5 100644 --- a/examples/nxflat/tests/hello++/hello++3.cpp +++ b/examples/nxflat/tests/hello++/hello++3.cpp @@ -114,12 +114,12 @@ int main(int argc, char **argv) // Tell MyThingSayer that "Hello, World!" is the string to be said - printf("main: Calling MyThingSayer.Initialize\n");; + printf("main: Calling MyThingSayer.Initialize\n"); MyThingSayer.Initialize("Hello, World!"); // Tell MyThingSayer to say the thing we told it to say - printf("main: Calling MyThingSayer.SayThing\n");; + printf("main: Calling MyThingSayer.SayThing\n"); MyThingSayer.SayThing(); // We are finished, return. We should see the message from the @@ -127,6 +127,6 @@ int main(int argc, char **argv) // message. That is proof that the C++ static destructor logic // is working - printf("main: Returning. MyThingSayer should be destroyed\n");; + printf("main: Returning. MyThingSayer should be destroyed\n"); return 0; } diff --git a/examples/udp/udp-server.c b/examples/udp/udp-server.c index 03c44e184..c9f16d571 100644 --- a/examples/udp/udp-server.c +++ b/examples/udp/udp-server.c @@ -131,7 +131,7 @@ void recv_server(void) #else server.sin_family = AF_INET; server.sin_port = HTONS(PORTNO); - server.sin_addr.s_addr = HTONL(INADDR_ANY);; + server.sin_addr.s_addr = HTONL(INADDR_ANY); addrlen = sizeof(struct sockaddr_in); #endif diff --git a/modbus/ascii/mbascii.c b/modbus/ascii/mbascii.c index f713433e8..5e8390844 100644 --- a/modbus/ascii/mbascii.c +++ b/modbus/ascii/mbascii.c @@ -420,7 +420,7 @@ bool xMBASCIIReceiveFSM(void) /* Reset the input buffers to store the frame. */ - usRcvBufferPos = 0;; + usRcvBufferPos = 0; eBytePos = BYTE_HIGH_NIBBLE; eRcvState = STATE_RX_RCV; } diff --git a/modbus/functions/mbfunccoils.c b/modbus/functions/mbfunccoils.c index 1e2f3a2cd..729e1ddf4 100644 --- a/modbus/functions/mbfunccoils.c +++ b/modbus/functions/mbfunccoils.c @@ -144,7 +144,7 @@ eMBException eMBFuncReadCoils(uint8_t *pucFrame, uint16_t *usLen) * buffer because they are still valid. */ - *usLen += ucNBytes;; + *usLen += ucNBytes; } } else diff --git a/modbus/functions/mbfuncdisc.c b/modbus/functions/mbfuncdisc.c index 00a470fda..058bdd643 100644 --- a/modbus/functions/mbfuncdisc.c +++ b/modbus/functions/mbfuncdisc.c @@ -131,7 +131,7 @@ eMBException eMBFuncReadDiscreteInputs(uint8_t *pucFrame, uint16_t *usLen) * buffer because they are still valid. */ - *usLen += ucNBytes;; + *usLen += ucNBytes; } } else