aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-03-18 19:46:53 +0100
committerWolfgang Müller2021-04-27 12:28:35 +0200
commitc0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9 (patch)
tree953c484d4a75cfcff94bdb3184b33136ef72ea4f /util.c
parent26a8c6ced076b6a49b130deb4fe35d6707bebbae (diff)
downloadcwm-c0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9.tar.gz
Remove wm menu
Whilst arguably useful for certain people, or in rare cases, this functionality is not needed in the general case. This will also remove a memory leak where fallback was not properly freed.
Diffstat (limited to 'util.c')
-rw-r--r--util.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/util.c b/util.c
index fda3a37..75b97f0 100644
--- a/util.c
+++ b/util.c
@@ -84,30 +84,6 @@ u_exec(char *argstr)
warn("%s", s);
}
-char *
-u_argv(char * const *argv)
-{
- size_t siz = 0;
- int i;
- char *p;
-
- if (argv == 0)
- return NULL;
-
- for (i = 0; argv[i]; i++)
- siz += strlen(argv[i]) + 1;
- if (siz == 0)
- return NULL;
-
- p = xmalloc(siz);
- strlcpy(p, argv[0], siz);
- for (i = 1; argv[i]; i++) {
- strlcat(p, " ", siz);
- strlcat(p, argv[i], siz);
- }
- return p;
-}
-
static void
log_msg(const char *msg, va_list ap)
{