Fixed compiler warnings regarding type of argument passed
This commit is contained in:
parent
4523a30404
commit
65014ebd27
|
|
@ -95,7 +95,7 @@ com_stop(wordlist *wl)
|
||||||
charr[1] = copy("eq");
|
charr[1] = copy("eq");
|
||||||
charr[2] = tokafter;
|
charr[2] = tokafter;
|
||||||
charr[3] = NULL;
|
charr[3] = NULL;
|
||||||
wln = wl_build(charr);
|
wln = wl_build((const char * const *) charr);
|
||||||
wl_splice(wl->wl_next, wln);
|
wl_splice(wl->wl_next, wln);
|
||||||
}
|
}
|
||||||
/* continue with parsing the enhanced wordlist */
|
/* continue with parsing the enhanced wordlist */
|
||||||
|
|
|
||||||
|
|
@ -1469,7 +1469,7 @@ com_alter_mod(wordlist *wl)
|
||||||
}
|
}
|
||||||
arglist[2] = inptoken;
|
arglist[2] = inptoken;
|
||||||
/* create a new wordlist from array arglist */
|
/* 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);
|
com_alter_common(newcommand->wl_next, 1);
|
||||||
wl_free(newcommand);
|
wl_free(newcommand);
|
||||||
tfree(inptoken);
|
tfree(inptoken);
|
||||||
|
|
|
||||||
|
|
@ -579,7 +579,7 @@ com_write_sparam(wordlist *wl)
|
||||||
sbuf[3] = "S12";
|
sbuf[3] = "S12";
|
||||||
sbuf[4] = "S22";
|
sbuf[4] = "S22";
|
||||||
sbuf[5] = NULL;
|
sbuf[5] = NULL;
|
||||||
wl_sparam = wl_build(sbuf);
|
wl_sparam = wl_build((const char * const *) sbuf);
|
||||||
|
|
||||||
names = ft_getpnames(wl_sparam, TRUE);
|
names = ft_getpnames(wl_sparam, TRUE);
|
||||||
if (names == NULL)
|
if (names == NULL)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue