Pointer qualifier fix

This commit is contained in:
2025-08-05 12:03:50 -04:00
parent 4171c81bfd
commit cf79834870

View File

@@ -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");