summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--bounce.c (renamed from bouncer.c)2
-rw-r--r--bounce.h (renamed from bouncer.h)2
-rw-r--r--listen.c2
4 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c974242..80b5261 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ LDLIBS = -ltls
 
 -include config.mk
 
-OBJS += bouncer.o
+OBJS += bounce.o
 OBJS += listen.o
 
 all: tags linger
@@ -15,7 +15,7 @@ all: tags linger
 linger: ${OBJS}
 	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
 
-${OBJS}: bouncer.h
+${OBJS}: bounce.h
 
 tags: *.c *.h
 	ctags -w *.c *.h
diff --git a/bouncer.c b/bounce.c
index 0d1d551..b3d8b33 100644
--- a/bouncer.c
+++ b/bounce.c
@@ -24,7 +24,7 @@
 #include <tls.h>
 #include <unistd.h>
 
-#include "bouncer.h"
+#include "bounce.h"
 
 static char *censor(char *arg) {
 	char *dup = strdup(arg);
diff --git a/bouncer.h b/bounce.h
index 13656ad..e731ac0 100644
--- a/bouncer.h
+++ b/bounce.h
@@ -28,3 +28,5 @@
 void listenConfig(const char *cert, const char *priv);
 size_t listenBind(int fds[], size_t cap, const char *host, const char *port);
 int listenAccept(struct tls **client, int fd);
+
+int serverConnect(const char *host, const char *port);
diff --git a/listen.c b/listen.c
index cb6b164..d758b9d 100644
--- a/listen.c
+++ b/listen.c
@@ -23,7 +23,7 @@
 #include <tls.h>
 #include <unistd.h>
 
-#include "bouncer.h"
+#include "bounce.h"
 
 static struct tls *server;
 
/a>Lars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-06-07Add head-include configuration option.Mark Lodato This patch adds an option to the configuration file, "head-include", which works just like "header" or "footer", except the content is put into the HTML's <head> tag. 2009-03-15CGIT 0.8.2.1Lars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-03-15Fix doc-related glitches in Makefile and .gitignoreLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-03-15ui-snapshot: avoid segfault when no filename is specifiedLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-03-15fix segfault when displaying empty blobsEric Wong When size is zero, subtracting one from it turns it into ULONG_MAX which causes an out-of-bounds access on buf. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-02-19Add support for HEAD requestsLars Hjemli This is a quick 'n dirty hack which makes cgit honor HEAD requests. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-02-19Add support for ETag in 'plain' viewLars Hjemli When downloading a blob identified by its path, the client might want to know if the blob has been modified since a previous download of the same path. To this end, an ETag containing the blob SHA1 seems to be ideal. Todo: add support for HEAD requests... Suggested-by: Owen Taylor <otaylor@redhat.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-02-12ui-tree: escape ascii-text properly in hexdump viewLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-02-12Makefile: add doc-related targetsLars Hjemli