-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: urcd
action: commit
revision:
path_from:
revision_from: 1f77c78e607ad41d85ed187172abcc8a7ac02472:
path_to:
revision_to:

git.thebackupbox.net

urcd

git://git.thebackupbox.net/urcd

commit 1f77c78e607ad41d85ed187172abcc8a7ac02472
Author: root <root@d3v11.ano>
Date:   Wed Mar 6 18:51:25 2013 +0000

    [src/urcstream] we don't need to check n's len twice before write()

diff --git a/src/urcstream.c b/src/urcstream.c

index 43e8cb623cc857f0aee747cfc54ee074df954e44..

index ..3222b43601cdc80730b327b6a3a4f2a0b09ab538 100644

--- a/src/urcstream.c
+++ b/src/urcstream.c
@@ -131,7 +131,7 @@ main(int argc, char **argv)
       n = read(3,buffer,1024);
       if (n<1) sock_close(9);
       if (buffer[n-1] != '\n') continue;
-      if (n) if (write(wr,buffer,n)<0) sock_close(10);
+      if (write(wr,buffer,n)<0) sock_close(10);
     }

   }

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 18:38:02 2024