Removed const
where it was simply wrong.
This commit is contained in:
parent
683da15953
commit
fe84daecfe
@ -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);
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <sys/types.h>
|
||||
struct process_info {
|
||||
pid_t PID;
|
||||
const char *name;
|
||||
char *name;
|
||||
};
|
||||
|
||||
#endif // PROCESS_INFO_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user