1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-30 14:09:13 +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__ */ #endif /* __OpenBSD__ */
OBJ(cmdline_to_pid) {
print_cmdline_to_pid(obj, p, p_max_size);
}
#ifdef X11 #ifdef X11
OBJ(font) { OBJ(font) {
new_font(p, obj->data.s); 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; obj->callbacks.print = &print_nodename;
END OBJ_ARG(cmdline_to_pid, 0, "cmdline_to_pid needs a command line as argument") 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); 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") END OBJ_ARG(pid_chroot, 0, "pid_chroot needs a pid as argument")
obj->sub = malloc(sizeof(struct text_object)); obj->sub = malloc(sizeof(struct text_object));
extract_variable_text_internal(obj->sub, arg); extract_variable_text_internal(obj->sub, arg);