1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 11:05:18 +00:00

trivial conversion of cmdline_to_pid to callbacks.print

This commit is contained in:
Phil Sutter 2009-11-26 01:11:33 +01:00
parent 871c4b2d02
commit f5596a6505
2 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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);