]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/wincons.c
New timing infrastructure. There's a new function schedule_timer()
[PuTTY.git] / windows / wincons.c
index 03bb472629b96563a0553af4c0ec09a66f83d676..347f99f1e28384886db2f60abe13536faf996887 100644 (file)
@@ -33,6 +33,14 @@ void cleanup_exit(int code)
     exit(code);
 }
 
+void notify_remote_exit(void *frontend)
+{
+}
+
+void timer_change_notify(long next)
+{
+}
+
 void verify_ssh_host_key(void *frontend, char *host, int port, char *keytype,
                         char *keystr, char *fingerprint)
 {
@@ -282,6 +290,7 @@ int console_get_line(const char *prompt, char *str,
     if (console_batch_mode) {
        if (maxlen > 0)
            str[0] = '\0';
+       return 0;
     } else {
        hin = GetStdHandle(STD_INPUT_HANDLE);
        hout = GetStdHandle(STD_OUTPUT_HANDLE);
@@ -312,8 +321,8 @@ int console_get_line(const char *prompt, char *str,
        if (is_pw)
            WriteFile(hout, "\r\n", 2, &i, NULL);
 
+       return 1;
     }
-    return 1;
 }
 
 void frontend_keypress(void *handle)