commit 3ecc530e68863c0a20d235ebfe07b23454294863 from: Omar Polo date: Sun Sep 08 18:08:59 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 - 5fb267cb9e3ad437bb94f4fd9ecbf399028c76f7 commit + 3ecc530e68863c0a20d235ebfe07b23454294863 blob - a09ef25ef79277b04b90ae84b72aed522da5a4c1 blob + f1443d0b0dc69d389f59208ecb4ce2354a246f6d --- gitwrapper/Makefile +++ gitwrapper/Makefile @@ -10,7 +10,7 @@ BINDIR ?= ${PREFIX}/bin PROG= gitwrapper SRCS= gitwrapper.c parse.y log.c dial.c path.c error.c \ - reference_parse.c hash.c object_qid.c secrets.c + reference_parse.c hash.c object_qid.c CLEANFILES = parse.h blob - 2017ec526d2f1120654078766a5c1dd7b5a0723b blob + f64b1024e378845bb310d66748b3ffb736d8022a --- gitwrapper/gitwrapper.c +++ gitwrapper/gitwrapper.c @@ -44,6 +44,7 @@ #include "gotd.h" #include "log.h" +#include "secrets.h" #ifndef GITWRAPPER_GIT_LIBEXEC_DIR #define GITWRAPPER_GIT_LIBEXEC_DIR "/usr/local/libexec/git" @@ -53,6 +54,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)