Remove char_u: Review

Helped-by: Scott Prager <splinterofchaos@gmail.com>
This commit is contained in:
Michael Reed
2015-05-13 15:29:50 -04:00
parent 62bcd98ae3
commit af3381b319
2 changed files with 6 additions and 6 deletions

View File

@@ -702,8 +702,7 @@ static void report_pending(int action, int pending, void *value)
if (pending & CSTP_THROW) { if (pending & CSTP_THROW) {
vim_snprintf((char *)IObuff, IOSIZE, vim_snprintf((char *)IObuff, IOSIZE,
mesg, _("Exception")); mesg, _("Exception"));
mesg = (char *)vim_strnsave(IObuff, STRLEN(IObuff) + 4); mesg = (char *)concat_str(IObuff, (char_u *)": %s");
strcat(mesg, ": %s");
s = (char *)((except_T *)value)->value; s = (char *)((except_T *)value)->value;
} else if ((pending & CSTP_ERROR) && (pending & CSTP_INTERRUPT)) } else if ((pending & CSTP_ERROR) && (pending & CSTP_INTERRUPT))
s = _("Error and interrupt"); s = _("Error and interrupt");

View File

@@ -1168,12 +1168,13 @@ static void command_line_scan(mparm_T *parmp)
a = SESSION_FILE; a = SESSION_FILE;
++argc; ++argc;
--argv; --argv;
} else } else {
a = argv[0]; a = argv[0];
p = xmalloc(STRLEN(a) + 4); }
sprintf((char *)p, "so %s", a); char *s = xmalloc(STRLEN(a) + 4);
sprintf(s, "so %s", a);
parmp->cmds_tofree[parmp->n_commands] = TRUE; parmp->cmds_tofree[parmp->n_commands] = TRUE;
parmp->commands[parmp->n_commands++] = (char *)p; parmp->commands[parmp->n_commands++] = s;
} else { } else {
parmp->commands[parmp->n_commands++] = argv[0]; parmp->commands[parmp->n_commands++] = argv[0];
} }