Removed const
where it was simply wrong.
This commit is contained in:
parent
683da15953
commit
fe84daecfe
@ -42,7 +42,7 @@
|
|||||||
#include "sourcefs.h"
|
#include "sourcefs.h"
|
||||||
#include "ui-socket.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];
|
char path[1024];
|
||||||
sprintf(path, "/proc/%d/exe", pid);
|
sprintf(path, "/proc/%d/exe", pid);
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
struct process_info {
|
struct process_info {
|
||||||
pid_t PID;
|
pid_t PID;
|
||||||
const char *name;
|
char *name;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PROCESS_INFO_H
|
#endif // PROCESS_INFO_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user