]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Fixed warning in Code Composer terminal code.
authormaek <devnull@localhost>
Mon, 17 Sep 2012 10:39:12 +0000 (12:39 +0200)
committermaek <devnull@localhost>
Mon, 17 Sep 2012 10:39:12 +0000 (12:39 +0200)
common/newlib_port.c

index b90093bd860753f9e97894ca0d4c7c93b990f938..0a9ca794057f8ee7c5921bf5824e8bed11f3862e 100644 (file)
@@ -107,10 +107,10 @@ volatile char g_TConn __attribute__ ((section (".winidea_port")));
 \r
 \r
 static unsigned char parmbuf[8];\r
-#define BUFSIZ 512\r
-#define CC_BUFFER_SIZE ((BUFSIZ)+32)\r
+#define CC_BUFSIZ 512\r
+#define CC_BUFFER_SIZE ((CC_BUFSIZ)+32)\r
 volatile unsigned int _CIOBUF_[CC_BUFFER_SIZE] __attribute__ ((section (".cio")));\r
-static unsigned char CIOTMPBUF[BUFSIZ];\r
+static unsigned char CIOTMPBUF[CC_BUFSIZ];\r
 static uint16 cio_tmp_buf_index = 0;\r
 \r
 /***************************************************************************/\r
@@ -184,9 +184,9 @@ int HOSTwrite(int dev_fd, const char *buf, unsigned count)
    // WARNING. Can only handle count == 1!\r
    if (count != 1) _exit(1);\r
 \r
-   if (count > BUFSIZ) count = BUFSIZ;\r
+   if (count > CC_BUFSIZ) count = CC_BUFSIZ;\r
 \r
-   if (cio_tmp_buf_index < BUFSIZ) {\r
+   if (cio_tmp_buf_index < CC_BUFSIZ) {\r
           CIOTMPBUF[cio_tmp_buf_index++] = *buf;\r
 \r
           if (*buf != 0xA) { // Only flush if newline\r