diff options
| Commit | 5b4e73c203f5f4484d66f043f1e9114daefeb632 (patch) | |
|---|---|---|
| Author | 2026-05-04 17:50:43 +0200 | |
| Committer | 2026-05-04 18:28:27 +0200 | |
| Files | 7ebc46472eeaf730e3be445a162ac98d65aa9afc /cgit.h | |
| cgit-5b4e73c203f5f4484d66f043f1e9114daefeb632.tar cgit-5b4e73c203f5f4484d66f043f1e9114daefeb632.tar.gz cgit-5b4e73c203f5f4484d66f043f1e9114daefeb632.zip | ||
| Parent | 829eb0711305e8946fa2f4a1c57c43354f35e208 (diff) | |
cgit: devirtualize repo_config
There's no reason to pass around function pointers. It was never used
for anything beyond one function.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 files changed, 2 insertions, 4 deletions
| -rw-r--r-- | cgit.h | 6 |
@@ -121,9 +121,6 @@ struct cgit_repo { int ignore; }; -typedef void (*repo_config_fn)(struct cgit_repo *repo, const char *name, - const char *value); - struct cgit_repolist { int length; int count; @@ -334,7 +331,8 @@ extern const struct cgit_snapshot_format cgit_snapshot_formats[]; extern char *cgit_default_repo_desc; extern struct cgit_repo *cgit_add_repo(const char *url); extern struct cgit_repo *cgit_get_repoinfo(const char *url); -extern void cgit_repo_config_cb(const char *name, const char *value); +extern void cgit_repo_config(struct cgit_repo *repo, const char *name, + const char *value); extern int chk_zero(int result, char *msg); extern int chk_positive(int result, char *msg); |
