X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fspreadsheet-test.c;h=dfdd95c0ae8e119a5127c1c11e22131a9fa1f264;hb=d1a98ef3d49f66f6622e2eee6215f78d9dda83bb;hp=da63c0ff4a1210aebdf95188cfdb9ac005731118;hpb=3dd0f6ae0d5eb73a2270a243e443c4ae03c2c16e;p=pspp diff --git a/src/ui/gui/spreadsheet-test.c b/src/ui/gui/spreadsheet-test.c index da63c0ff4a..dfdd95c0ae 100644 --- a/src/ui/gui/spreadsheet-test.c +++ b/src/ui/gui/spreadsheet-test.c @@ -83,7 +83,7 @@ on_clicked (GtkButton *button, struct xxx *stuff) else { char *ss = xzalloc (width + 1); - memcpy (ss, value_str (val, width), width); + memcpy (ss, val->s, width); printf ("%s ", ss); free (ss); @@ -103,7 +103,7 @@ print_msg (const struct msg *m, void *aux UNUSED) int -main (int argc, char *argv[] ) +main (int argc, char *argv[]) { GtkWidget *window; GtkWidget *hbox; @@ -119,10 +119,10 @@ main (int argc, char *argv[] ) gtk_init (&argc, &argv); - if ( argc < 2) + if (argc < 2) g_error ("Usage: prog file\n"); - msg_set_handler (print_msg, 0); + msg_set_handler (&(struct msg_handler) { .output_msg = print_msg }); stuff.sp = NULL;