X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fui%2Fgui%2Fspreadsheet-test.c;h=dfdd95c0ae8e119a5127c1c11e22131a9fa1f264;hb=refs%2Fheads%2Fctables7;hp=b8ce870d4635a07917d882d9f479294d81be46df;hpb=a49b940e58f148bf111c647d9b4822025636ff80;p=pspp diff --git a/src/ui/gui/spreadsheet-test.c b/src/ui/gui/spreadsheet-test.c index b8ce870d46..dfdd95c0ae 100644 --- a/src/ui/gui/spreadsheet-test.c +++ b/src/ui/gui/spreadsheet-test.c @@ -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;