removed unused replace function

This commit is contained in:
aidan 2020-04-16 01:03:30 -06:00
parent 003a2238dc
commit 030de220e4

View File

@ -14,7 +14,6 @@ typedef struct {
unsigned int signal; unsigned int signal;
} Block; } Block;
void sighandler(int num); void sighandler(int num);
void replace(char *str, char old, char new);
void getcmds(int time); void getcmds(int time);
#ifndef __OpenBSD__ #ifndef __OpenBSD__
void getsigcmds(int signal); void getsigcmds(int signal);
@ -37,14 +36,6 @@ static char statusstr[2][256];
static int statusContinue = 1; static int statusContinue = 1;
static void (*writestatus) () = setroot; static void (*writestatus) () = setroot;
void replace(char *str, char old, char new)
{
int N = strlen(str);
for(int i = 0; i < N; i++)
if(str[i] == old)
str[i] = new;
}
//opens process *cmd and stores output in *output //opens process *cmd and stores output in *output
void getcmd(const Block *block, char *output) void getcmd(const Block *block, char *output)
{ {