]> git.seodisparate.com - c_simple_http/commitdiff
Minor formatting fix
authorStephen Seo <seo.disparate@gmail.com>
Thu, 29 Aug 2024 07:25:30 +0000 (16:25 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 29 Aug 2024 07:25:30 +0000 (16:25 +0900)
src/main.c

index 50a29339911069c03dd939ecb687411ac0a94af4..9666da7ee5f59f689918d1193f44e123800d7439 100644 (file)
@@ -73,7 +73,9 @@ int main(int argc, char **argv) {
       read_ret = read(connection_fd, recv_buf, C_SIMPLE_HTTP_RECV_BUF_SIZE);
       // DEBUG print received buf.
       // TODO Validate request and send response.
-      for (unsigned int idx = 0; idx < C_SIMPLE_HTTP_RECV_BUF_SIZE && idx < read_ret; ++idx) {
+      for (unsigned int idx = 0;
+          idx < C_SIMPLE_HTTP_RECV_BUF_SIZE && idx < read_ret;
+          ++idx) {
         if (recv_buf[idx] >= 0x20 && recv_buf[idx] <= 0x7E) {
           printf("%c", recv_buf[idx]);
         } else {