Fixed compiler warnings regarding type of argument passed

This commit is contained in:
Jim Monte 2019-11-29 20:12:30 -05:00
parent 4523a30404
commit 65014ebd27
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ com_stop(wordlist *wl)
charr[1] = copy("eq");
charr[2] = tokafter;
charr[3] = NULL;
wln = wl_build(charr);
wln = wl_build((const char * const *) charr);
wl_splice(wl->wl_next, wln);
}
/* continue with parsing the enhanced wordlist */

View File

@ -1469,7 +1469,7 @@ com_alter_mod(wordlist *wl)
}
arglist[2] = inptoken;
/* create a new wordlist from array arglist */
newcommand = wl_build(arglist);
newcommand = wl_build((const char * const *) arglist);
com_alter_common(newcommand->wl_next, 1);
wl_free(newcommand);
tfree(inptoken);

View File

@ -579,7 +579,7 @@ com_write_sparam(wordlist *wl)
sbuf[3] = "S12";
sbuf[4] = "S22";
sbuf[5] = NULL;
wl_sparam = wl_build(sbuf);
wl_sparam = wl_build((const char * const *) sbuf);
names = ft_getpnames(wl_sparam, TRUE);
if (names == NULL)