From 80767bc9732bf6716697198e53ff2cb8d4ae96be Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Wed, 12 Aug 2026 18:23:17 -1000 Subject: Restyle the sources and fix the audit's findings --- source/ui-clone.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'source/ui-clone.h') diff --git a/source/ui-clone.h b/source/ui-clone.h index 3e460a3..71deff2 100644 --- a/source/ui-clone.h +++ b/source/ui-clone.h @@ -1,8 +1,15 @@ -#ifndef UI_CLONE_H -#define UI_CLONE_H +/* + * The entry points that serve a dumb HTTP clone, one for each kind of file + * such a client fetches. Each writes raw bytes rather than a page, and cmd.c + * flags them as clone requests so a site with http cloning turned off can + * refuse all of them in one place. + */ -void cgit_clone_info(void); -void cgit_clone_objects(void); -void cgit_clone_head(void); +#ifndef CGIT_UI_CLONE_H +#define CGIT_UI_CLONE_H -#endif /* UI_CLONE_H */ +extern void cgit_clone_info(void); +extern void cgit_clone_objects(void); +extern void cgit_clone_head(void); + +#endif // CGIT_UI_CLONE_H -- cgit v2.8.0