From dca8ff54378495d1f08b863e431d2cbdb8acc688 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:28:22 -0700 Subject: Move the die wrappers into filter.c --- source/shared.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source/shared.h') diff --git a/source/shared.h b/source/shared.h index 2633a24..2397f67 100644 --- a/source/shared.h +++ b/source/shared.h @@ -16,14 +16,6 @@ extern char cgit_default_repo_desc[]; typedef void (*filepair_fn)(struct diff_filepair *pair); typedef void (*linediff_fn)(char *line, int len); -/* - * Each of these returns its argument untouched when the syscall it wraps - * succeeded, and dies with the message and errno otherwise. - */ -extern int cgit_die_unless_zero(int result, const char *msg); -extern int cgit_die_unless_positive(int result, const char *msg); -extern int cgit_die_unless_non_negative(int result, const char *msg); - /* * Append a repository to cgit_repolist and return it, seeded from the current * global configuration. The returned pointer is invalidated by the next call, -- cgit