Fixed warning in model.c
authorPhilip Chimento <philip.chimento@gmail.com>
Wed, 9 Sep 2009 19:25:53 +0000 (19:25 +0000)
committerPhilip Chimento <philip.chimento@gmail.com>
Wed, 9 Sep 2009 19:25:53 +0000 (19:25 +0000)
git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@109 ddfedd41-794f-dd11-ae45-00112f111e67

tests/model.c

index b7831df0e2d20fb9e998d97ad1a40bda65005a64..9e5800ed2222fe47b8bfcf77c2bbc19244df3de0 100644 (file)
@@ -41,11 +41,11 @@ void glk_main(void)
                glk_set_window(mainwin);
                glk_put_char_uni( glk_get_char_stream_uni(s) );
                glk_put_char('\n');
-               g_printerr( "Line read: %d\n", glk_get_line_stream_uni(s, buffer, 1024) );
-               g_printerr("string[5] = %X\n", buffer[5]);
+               printf("Line read: %d\n", glk_get_line_stream_uni(s, buffer, 1024) );
+               printf("string[5] = %X\n", buffer[5]);
                glk_put_string_uni(buffer);
                int count = glk_get_buffer_stream_uni(s, buffer, 1024);
-               g_printerr("Buffer read: %d\n", count);
+               printf("Buffer read: %d\n", count);
                glk_put_string("\n---SOME CHARACTERS---\n");
                glk_put_buffer_uni(buffer, count);
                glk_put_string("\n---THE SAME CHARACTERS IN UPPERCASE---\n");
@@ -55,7 +55,7 @@ void glk_main(void)
                stream_result_t result;
                glk_stream_close(s, &result);
                
-               g_printerr("Read count: %d\nWrite count: %d\n", result.readcount, result.writecount);
+               fprintf(stderr, "Read count: %d\nWrite count: %d\n", result.readcount, result.writecount);
 /*             glk_fileref_destroy(f);
        }*/