Minor cleanup of unnecessary explicit casts.

This commit is contained in:
Joachim Nilsson 2010-08-11 21:19:41 +02:00
parent fc08d47bce
commit d72069144e

View File

@ -1329,17 +1329,17 @@ static el_status_t c_complete(void)
return CSdispatch; return CSdispatch;
word = el_find_word(); word = el_find_word();
p = (char *)rl_complete((char *)word, &unique); p = rl_complete(word, &unique);
if (word) if (word)
free(word); free(word);
if (p) { if (p) {
len = strlen((char *)p); len = strlen(p);
word = p; word = p;
new = q = malloc(sizeof(char) * (2 * len + 1)); new = q = malloc(sizeof(char) * (2 * len + 1));
if (!new) if (!new)
return CSstay; return CSstay;
while (*p) { while (*p) {
if ((*p < ' ' || strchr(SEPS, (char) *p) != NULL) if ((*p < ' ' || strchr(SEPS, *p) != NULL)
&& (!unique || p[1] != 0)) { && (!unique || p[1] != 0)) {
*q++ = '\\'; *q++ = '\\';
} }