mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-13 03:11:16 +00:00
fix last commit
This commit is contained in:
parent
fa459f0539
commit
7b6e01b869
10
src/proc.c
10
src/proc.c
@ -106,7 +106,7 @@ void print_pid_chroot(struct text_object *obj, char *p, int p_max_size) {
|
|||||||
char *buffer;
|
char *buffer;
|
||||||
|
|
||||||
asprintf(&buffer, PROCDIR "/%s/root", obj->data.s);
|
asprintf(&buffer, PROCDIR "/%s/root", obj->data.s);
|
||||||
print_pid_readlink(buffer, p, p_max_size);
|
pid_readlink(buffer, p, p_max_size);
|
||||||
free(buffer);
|
free(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ void print_pid_exe(struct text_object *obj, char *p, int p_max_size) {
|
|||||||
char *buffer;
|
char *buffer;
|
||||||
|
|
||||||
asprintf(&buffer, PROCDIR "/%s/exe", obj->data.s);
|
asprintf(&buffer, PROCDIR "/%s/exe", obj->data.s);
|
||||||
print_pid_readlink(buffer, p, p_max_size);
|
pid_readlink(buffer, p, p_max_size);
|
||||||
free(buffer);
|
free(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,7 +288,7 @@ void print_pid_stderr(struct text_object *obj, char *p, int p_max_size) {
|
|||||||
char *buffer;
|
char *buffer;
|
||||||
|
|
||||||
asprintf(&buffer, PROCDIR "/%s/fd/2", obj->data.s);
|
asprintf(&buffer, PROCDIR "/%s/fd/2", obj->data.s);
|
||||||
print_pid_readlink(buffer, p, p_max_size);
|
pid_readlink(buffer, p, p_max_size);
|
||||||
free(buffer);
|
free(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -296,7 +296,7 @@ void print_pid_stdin(struct text_object *obj, char *p, int p_max_size) {
|
|||||||
char *buffer;
|
char *buffer;
|
||||||
|
|
||||||
asprintf(&buffer, PROCDIR "/%s/fd/0", obj->data.s);
|
asprintf(&buffer, PROCDIR "/%s/fd/0", obj->data.s);
|
||||||
print_pid_readlink(buffer, p, p_max_size);
|
pid_readlink(buffer, p, p_max_size);
|
||||||
free(buffer);
|
free(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -304,7 +304,7 @@ void print_pid_stdout(struct text_object *obj, char *p, int p_max_size) {
|
|||||||
char *buffer;
|
char *buffer;
|
||||||
|
|
||||||
asprintf(&buffer, PROCDIR "/%s/fd/1", obj->data.s);
|
asprintf(&buffer, PROCDIR "/%s/fd/1", obj->data.s);
|
||||||
print_pid_readlink(buffer, p, p_max_size);
|
pid_readlink(buffer, p, p_max_size);
|
||||||
free(buffer);
|
free(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user