1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Fix miscellaneous compiler warnings. Thanks to Jacob Nevins

[originally from svn r755]
This commit is contained in:
Simon Tatham
2000-10-24 10:47:49 +00:00
parent 5ff9cc2f1f
commit 384eeb3f76
10 changed files with 18 additions and 4 deletions

View File

@ -7,6 +7,7 @@
#endif
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
@ -16,7 +17,7 @@
void fatalbox (char *p, ...) {
va_list ap;
fprintf(stderr, "FATAL ERROR: ", p);
fprintf(stderr, "FATAL ERROR: ");
va_start(ap, p);
vfprintf(stderr, p, ap);
va_end(ap);
@ -26,7 +27,7 @@ void fatalbox (char *p, ...) {
}
void connection_fatal (char *p, ...) {
va_list ap;
fprintf(stderr, "FATAL ERROR: ", p);
fprintf(stderr, "FATAL ERROR: ");
va_start(ap, p);
vfprintf(stderr, p, ap);
va_end(ap);