Miscellaneous fixes to finish up `remove-statics'. rlogin.c had a
[sgt/putty] / unix / uxcons.c
index 197466e..c172b0a 100644 (file)
@@ -25,10 +25,7 @@ void cleanup_exit(int code)
      * Clean up.
      */
     sk_cleanup();
-
-    if (cfg.protocol == PROT_SSH)
-       random_save_seed();
-
+    random_save_seed();
     exit(code);
 }
 
@@ -204,9 +201,6 @@ int askappend(void *frontend, char *filename)
 
     char line[32];
 
-    if (cfg.logxfovr != LGXF_ASK) {
-       return ((cfg.logxfovr == LGXF_OVR) ? 2 : 1);
-    }
     if (console_batch_mode) {
        fprintf(stderr, msgtemplate_batch, FILENAME_MAX, filename);
        fflush(stderr);
@@ -262,6 +256,7 @@ void old_keyfile_warning(void)
 
 void logevent(void *frontend, char *string)
 {
+    log_eventlog(logctx, string);
 }
 
 int console_get_line(const char *prompt, char *str,