// Find a process in the monitored process list (MPL) by PID. Returns the index
// of the entry in the MPL.
//
-int FindMonitoredPID(pid_t pid)
+static int FindMonitoredPID(pid_t pid)
{
for(int i=0; i<freeProcessSlot; i++)
{
//
// Add a process to the MPL
//
-static void AddEntry(pid_t pid, char * name, char * command)
+static void AddEntry(pid_t pid, const char * name, const char * command)
{
int i;
// Take a given space delimited string and turn it into an array of strings
// suitable for execv().
//
-static void MakeArgumentList(char * s)
+static void MakeArgumentList(const char * s)
{
char buf[4096];
char * tokSave;
// monitor: Tells Launch whether or not this process should be monitored
// and respawned if it goes away (0 = no, 1 = yes)
//
-static pid_t Launch(char * name, char * command, int monitor)
+static pid_t Launch(const char * name, const char * command, int monitor)
{
if (verbose)
printf("Starting %s (%smonitored)...\n", name, (monitor ? "" : "un"));
//
// Connect to PID 1's FIFO to send a command
//
-static void DoCmd(char * cmd)
+static void DoCmd(const char * cmd)
{
FILE * file = fopen(fifoPath, "w");