Add some missing consts in character set handling.
[u/mdw/putty] / unix / gtkwin.c
index c43c4e3..303052a 100644 (file)
@@ -210,6 +210,11 @@ int from_backend_untrusted(void *frontend, const char *data, int len)
     return term_data_untrusted(inst->term, data, len);
 }
 
+int from_backend_eof(void *frontend)
+{
+    return TRUE;   /* do respond to incoming EOF with outgoing */
+}
+
 int get_userpass_input(prompts_t *p, unsigned char *in, int inlen)
 {
     struct gui_data *inst = (struct gui_data *)p->frontend;
@@ -685,7 +690,8 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
         */
        output_charset = CS_UTF8;
        {
-           wchar_t widedata[32], *wp;
+           wchar_t widedata[32];
+            const wchar_t *wp;
            int wlen;
            int ulen;
 
@@ -1633,7 +1639,7 @@ void write_clip(void *frontend, wchar_t * data, int *attr, int len, int must_des
      * if we aren't in direct-to-font mode using the D800 hack.
      */
     if (!inst->direct_to_font) {
-       wchar_t *tmp = data;
+       const wchar_t *tmp = data;
        int tmplen = len;
        XTextProperty tp;
        char *list[1];
@@ -2968,7 +2974,7 @@ void change_settings_menuitem(GtkMenuItem *item, gpointer data)
          */
         if (strcmp(conf_get_str(oldconf, CONF_wintitle),
                   conf_get_str(newconf, CONF_wintitle)))
-            set_title(inst, conf_get_str(oldconf, CONF_wintitle));
+            set_title(inst, conf_get_str(newconf, CONF_wintitle));
        set_window_titles(inst);
 
         /*