widl: Remove printf format strings that aren't really format strings.

This commit is contained in:
Dan Hipschman 2007-10-17 18:05:37 -07:00 committed by Alexandre Julliard
parent 40e90aae25
commit 4fb7a0e40e
2 changed files with 5 additions and 5 deletions

View File

@ -2501,7 +2501,7 @@ void print_phase_basetype(FILE *file, int indent, enum remoting_phase phase,
fprintf(file, " *)_StubMsg.Buffer = *"); fprintf(file, " *)_StubMsg.Buffer = *");
else else
fprintf(file, " *)_StubMsg.Buffer = "); fprintf(file, " *)_StubMsg.Buffer = ");
fprintf(file, varname); fprintf(file, "%s", varname);
fprintf(file, ";\n"); fprintf(file, ";\n");
} }
else if (phase == PHASE_UNMARSHAL) else if (phase == PHASE_UNMARSHAL)
@ -2510,7 +2510,7 @@ void print_phase_basetype(FILE *file, int indent, enum remoting_phase phase,
print_file(file, indent, ""); print_file(file, indent, "");
else else
print_file(file, indent, "*"); print_file(file, indent, "*");
fprintf(file, varname); fprintf(file, "%s", varname);
if (pass == PASS_IN && is_ptr(type)) if (pass == PASS_IN && is_ptr(type))
fprintf(file, " = ("); fprintf(file, " = (");
else else

View File

@ -422,13 +422,13 @@ int main(int argc,char *argv[])
idfile_name = xstrdup(optarg); idfile_name = xstrdup(optarg);
break; break;
case 'V': case 'V':
printf(version_string); printf("%s", version_string);
return 0; return 0;
case 'W': case 'W':
pedantic = 1; pedantic = 1;
break; break;
default: default:
fprintf(stderr, usage); fprintf(stderr, "%s", usage);
return 1; return 1;
} }
} }
@ -458,7 +458,7 @@ int main(int argc,char *argv[])
input_name = xstrdup(argv[optind]); input_name = xstrdup(argv[optind]);
} }
else { else {
fprintf(stderr, usage); fprintf(stderr, "%s", usage);
return 1; return 1;
} }