Removed const where it was simply wrong.

This commit is contained in:
fedir 2025-05-01 20:54:39 +02:00
parent 683da15953
commit fe84daecfe
Signed by: fedir
GPG Key ID: C959EE85F0C9362C
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
#include "sourcefs.h"
#include "ui-socket.h"
const char *get_process_name_by_pid(const int pid) {
char *get_process_name_by_pid(const int pid) {
char path[1024];
sprintf(path, "/proc/%d/exe", pid);

View File

@ -12,7 +12,7 @@
#include <sys/types.h>
struct process_info {
pid_t PID;
const char *name;
char *name;
};
#endif // PROCESS_INFO_H