mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-28 13:00:45 +00:00
use gen_print_nothing for $apcupsd
This commit is contained in:
parent
37cbdcf89b
commit
8da8b26ddf
@ -229,14 +229,6 @@ void update_apcupsd(void) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* this is just a NOP for the $apcupsd object */
|
||||
void print_apcupsd_nop(struct text_object *obj, char *p, int p_max_size)
|
||||
{
|
||||
(void)obj;
|
||||
(void)p;
|
||||
(void)p_max_size;
|
||||
}
|
||||
|
||||
uint8_t apcupsd_loadbarval(struct text_object *obj)
|
||||
{
|
||||
(void)obj;
|
||||
|
@ -51,7 +51,6 @@ typedef struct apcupsd_s {
|
||||
/* Service routine for the conky main thread */
|
||||
void update_apcupsd(void);
|
||||
|
||||
void print_apcupsd_nop(struct text_object *, char *, int);
|
||||
uint8_t apcupsd_loadbarval(struct text_object *);
|
||||
|
||||
void print_apcupsd_name(struct text_object *, char *, int);
|
||||
|
@ -1492,7 +1492,7 @@ struct text_object *construct_text_object(const char *s, const char *arg, long
|
||||
info.apcupsd.port = htons(port);
|
||||
strncpy(info.apcupsd.host, host, sizeof(info.apcupsd.host));
|
||||
}
|
||||
obj->callbacks.print = &print_apcupsd_nop;
|
||||
obj->callbacks.print = &gen_print_nothing;
|
||||
END OBJ(apcupsd_name, &update_apcupsd)
|
||||
obj->callbacks.print = &print_apcupsd_name;
|
||||
END OBJ(apcupsd_model, &update_apcupsd)
|
||||
|
Loading…
Reference in New Issue
Block a user