]> code.citadel.org Git - citadel.git/commitdiff
* compiler warning
authorArt Cancro <ajc@citadel.org>
Mon, 7 Sep 2009 02:30:46 +0000 (02:30 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 7 Sep 2009 02:30:46 +0000 (02:30 +0000)
citadel/commands.c

index 4b71f698e2fcba024445719baf145b82f0df6d3c..afcfa62dbf1315d14b6775c302e7467d59e1136a 100644 (file)
@@ -1569,7 +1569,7 @@ void look_for_ansi(void)
        struct timeval tv;
        char abuf[512];
        time_t now;
-       int a;
+       int a, rv;
 
        if (rc_ansi_color == 0) {
                enable_color = 0;
@@ -1594,7 +1594,7 @@ void look_for_ansi(void)
                        select(1, &rfds, NULL, NULL, &tv);
                        if (FD_ISSET(0, &rfds)) {
                                abuf[strlen(abuf) + 1] = 0;
-                               read(0, &abuf[strlen(abuf)], 1);
+                               rv = read(0, &abuf[strlen(abuf)], 1);
                        }
                } while (FD_ISSET(0, &rfds));