Pointer qualifier fix
This commit is contained in:
@@ -51,7 +51,7 @@ extractTemplateDocument(const char* const templateFilename, const char* const te
|
||||
pid_t child_pid;
|
||||
if ((child_pid = fork()) == 0) {
|
||||
/* you are the child */
|
||||
char* const args[] = { "unzip", "-d", tempDir, templateFilename, NULL };
|
||||
char* const args[] = { "unzip", "-d", (char* const)tempDir, (char* const)templateFilename, NULL };
|
||||
freopen("/dev/null", "w", stdout);
|
||||
execvp("unzip", args);
|
||||
perror("execvp");
|
||||
@@ -129,7 +129,7 @@ removeDirectory(const char* const tempDir) {
|
||||
pid_t child_pid;
|
||||
if ((child_pid = fork()) == 0) {
|
||||
/* you are the child */
|
||||
char* const args[] = { "rm", "-rf", tempDir, NULL };
|
||||
char* const args[] = { "rm", "-rf", (char* const)tempDir, NULL };
|
||||
freopen("/dev/null", "w", stdout);
|
||||
execvp("rm", args);
|
||||
perror("execvp");
|
||||
|
||||
Reference in New Issue
Block a user