commit e9e8c3d7d469c7ad9a89b73431f91ae3e2a0a7c6 from: Omar Polo via: Thomas Adam date: Tue Sep 10 14:10:57 2024 UTC gitwrapper: add dummy gotd_secrets_get() to satisfy the linker This function is the only reason we had to pull in secrets.c in gitwrapper, because it's needed for parse.y (even if it's never called.) ok stsp@ commit - 0fbfa7970372d6314144d0da3641a34299e79981 commit + e9e8c3d7d469c7ad9a89b73431f91ae3e2a0a7c6 blob - 042c67513c22d551fad3940d43ff7577e7ea63f7 blob + 4f58040aa6ba6e5d864b262e1d18cb04539cea04 --- gitwrapper/gitwrapper.c +++ gitwrapper/gitwrapper.c @@ -42,6 +42,7 @@ #include "gotd.h" #include "log.h" +#include "secrets.h" #ifndef GITWRAPPER_GIT_LIBEXEC_DIR #define GITWRAPPER_GIT_LIBEXEC_DIR "/usr/local/libexec/git" @@ -51,6 +52,13 @@ #define GITWRAPPER_MY_SERVER_PROG "gotsh" #endif +/* only needed to satisfy the linker */ +const char * +gotd_secrets_get(struct gotd_secrets *secrets, enum gotd_secret_type t, + const char *key) +{ + return NULL; +} __dead static void usage(void)