mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 23:58:54 +02:00
Reflect latest g_io_channel_new_file() API changes, use
2001-07-08 Martin Baulig <baulig@suse.de> * tests/unicode-normalize.c, tests/unicode-collate.c: Reflect latest g_io_channel_new_file() API changes, use G_IO_FILE_MODE_READ instead of "r".
This commit is contained in:
committed by
Martin Baulig
parent
f1f680b68c
commit
39caf76a7f
@@ -41,7 +41,7 @@ int main (int argc, char **argv)
|
||||
|
||||
if (argc == 2)
|
||||
{
|
||||
in = g_io_channel_new_file (argv[1], "r", &error);
|
||||
in = g_io_channel_new_file (argv[1], G_IO_FILE_MODE_READ, &error);
|
||||
if (!in)
|
||||
{
|
||||
fprintf (stderr, "Cannot open %s: %s\n", argv[1], error->message);
|
||||
|
Reference in New Issue
Block a user