~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix miscellaneous compiler warnings. Thanks to Jacob Nevins
[sgt/putty]
/
plink.c
diff --git
a/plink.c
b/plink.c
index
ace6c75
..
16a44b3
100644
(file)
--- a/
plink.c
+++ b/
plink.c
@@
-7,6
+7,7
@@
#endif
#include <windows.h>
#include <stdio.h>
#endif
#include <windows.h>
#include <stdio.h>
+#include <stdlib.h>
#include <stdarg.h>
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
#include <stdarg.h>
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
@@
-16,7
+17,7
@@
void fatalbox (char *p, ...) {
va_list ap;
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);
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;
}
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);
va_start(ap, p);
vfprintf(stderr, p, ap);
va_end(ap);