From 5d1fd7a302d064cfa32ec4419a3adf77760dbb77 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 1 May 2025 14:04:04 -0500 Subject: [PATCH] Instead of warming, make logpath depend on the multiplexer being disabled. --- toys/example/logpath.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/toys/example/logpath.c b/toys/example/logpath.c index 84fb712a..06af5c29 100644 --- a/toys/example/logpath.c +++ b/toys/example/logpath.c @@ -2,13 +2,14 @@ * * Copyright 2019 Rob Landley * - * I made it up. Must be built standalone to work. (Is its own multiplexer.) + * Must be built standalone to work. (Is its own multiplexer.) USE_LOGPATH(NEWTOY(logpath, 0, TOYFLAG_NOHELP|TOYFLAG_USR|TOYFLAG_BIN)) config LOGPATH bool "logpath" default n + depends on !TOYBOX help usage: logpath ... @@ -19,10 +20,6 @@ config LOGPATH #define FOR_logpath #include "toys.h" -#if CFG_TOYBOX -#warning Must be built standalone to work. -#endif - void logpath_main(void) { char *log = getenv("LOGPATH"), *omnom = basename(*toys.argv), *s, *ss, *sss; -- 2.39.5