From 4cc50f41ce3f4fdad161df5469f15730eeb7986a Mon Sep 17 00:00:00 2001 From: cathugger Date: Wed, 6 Sep 2023 02:15:13 +0300 Subject: [PATCH] onionready: always refer warnnear --- worker.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worker.c b/worker.c index 1c954de..6c071db 100644 --- a/worker.c +++ b/worker.c @@ -130,6 +130,8 @@ static void onionready(char *sname,const u8 *secret,const u8 *pubonion,int warnn strcpy(&sname[onionendpos],pwarn); const size_t oprintlen = printlen; const size_t printlen = oprintlen + (warnnear ? strlen(pwarn)-1 : 0); +#else + (void) warnnear; #endif fwrite(&sname[printstartpos],printlen,1,fout); fflush(fout);