Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Wed, 21 May 2014 14:13:22 UTC Commit: 3d549f59e8fd325a6e0f08983f67f29127618873 https://github.com/geany/geany/commit/3d549f59e8fd325a6e0f08983f67f291276188...
Log Message: ----------- Fix a sign comparison warning
Modified Paths: -------------- src/socket.c
Modified: src/socket.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -205,7 +205,7 @@ static void socket_get_document_list(gint sock)
do { - n_read = socket_fd_read(sock, buf, sizeof(buf)); + n_read = socket_fd_read(sock, buf, BUFFER_LENGTH); /* if we received ETX (end-of-text), there is nothing else to read, so cut that * byte not to output it and to be sure not to validate the loop condition */ if (n_read > 0 && buf[n_read - 1] == '\3') @@ -213,7 +213,7 @@ static void socket_get_document_list(gint sock) if (n_read > 0) fwrite(buf, 1, n_read, stdout); } - while (n_read >= sizeof(buf)); + while (n_read >= BUFFER_LENGTH); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).