diff options
author | 2025-05-21 19:37:59 -0700 | |
---|---|---|
committer | 2025-05-21 19:37:59 -0700 | |
commit | e349cd01f274714224db358fcefe9976018be75b (patch) | |
tree | 1473767a8f93585b729bc2f1d20182a4b1a7575e /src | |
parent | 4fb34631a265b549852a858769f24306f2b6b817 (diff) | |
download | github-mirror-0.2.0.tar.gz github-mirror-0.2.0.tar.zst github-mirror-0.2.0.zip |
Change name from `github_mirror` to `github-mirror`v0.2.0
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 14 | ||||
-rw-r--r-- | src/config.h | 2 | ||||
-rw-r--r-- | src/main.c | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/config.c b/src/config.c index 23afac2..1556e68 100644 --- a/src/config.c +++ b/src/config.c @@ -17,13 +17,13 @@ const char *config_locations[] = { "config.ini", - "github_mirror.conf", - "/usr/local/github_mirror/config.ini", - "/usr/local/github_mirror.conf", - "/usr/local/etc/github_mirror/config.ini", - "/usr/local/etc/github_mirror.conf", - "/etc/github_mirror/config.ini", - "/etc/github_mirror.conf", + "github-mirror.conf", + "/usr/local/github-mirror/config.ini", + "/usr/local/github-mirror.conf", + "/usr/local/etc/github-mirror/config.ini", + "/usr/local/etc/github-mirror.conf", + "/etc/github-mirror/config.ini", + "/etc/github-mirror.conf", NULL, }; diff --git a/src/config.h b/src/config.h index aacf417..eb133b4 100644 --- a/src/config.h +++ b/src/config.h @@ -8,7 +8,7 @@ #include <stdlib.h> #define GH_DEFAULT_ENDPOINT "https://api.github.com/graphql" -#define GH_DEFAULT_USER_AGENT "github_mirror/" GITHUB_MIRROR_VERSION +#define GH_DEFAULT_USER_AGENT "github-mirror/" GITHUB_MIRROR_VERSION extern const char *config_locations[]; @@ -40,7 +40,7 @@ static int load_config(int argc, char **argv, struct config **cfg_out) quiet = 1; break; case 'v': - fprintf(stderr, "github_mirror v%s\n", + fprintf(stderr, "github-mirror v%s\n", GITHUB_MIRROR_VERSION); return 0; default: |