diff --git a/src/conky.c b/src/conky.c index 4816ddcd..6ba9feac 100644 --- a/src/conky.c +++ b/src/conky.c @@ -865,9 +865,6 @@ void generate_text_internal(char *p, int p_max_size, } #endif /* __OpenBSD__ */ - OBJ(cmdline_to_pid) { - print_cmdline_to_pid(obj, p, p_max_size); - } #ifdef X11 OBJ(font) { new_font(p, obj->data.s); diff --git a/src/core.c b/src/core.c index 08f9b86c..863260fc 100644 --- a/src/core.c +++ b/src/core.c @@ -834,6 +834,7 @@ struct text_object *construct_text_object(const char *s, const char *arg, long obj->callbacks.print = &print_nodename; END OBJ_ARG(cmdline_to_pid, 0, "cmdline_to_pid needs a command line as argument") scan_cmdline_to_pid_arg(obj, arg, free_at_crash); + obj->callbacks.print = &print_cmdline_to_pid; END OBJ_ARG(pid_chroot, 0, "pid_chroot needs a pid as argument") obj->sub = malloc(sizeof(struct text_object)); extract_variable_text_internal(obj->sub, arg);