policycoreutils: restorecond: Stop using deprecated interfaces for g_io
g_io_channel_read is deprecated. Use g_io_channel_read_chars instead. Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
parent
d4064c954f
commit
137604222a
|
@ -118,10 +118,10 @@ io_channel_callback
|
|||
|
||||
if (condition & G_IO_IN) {
|
||||
/* Data is available. */
|
||||
g_io_channel_read
|
||||
g_io_channel_read_chars
|
||||
(source, buffer,
|
||||
sizeof (buffer),
|
||||
&bytes_read);
|
||||
&bytes_read, NULL);
|
||||
|
||||
if (! bytes_read) {
|
||||
/* Sesssion/Terminal Ended */
|
||||
|
@ -152,7 +152,7 @@ io_channel_callback
|
|||
file. */
|
||||
|
||||
if (condition & G_IO_HUP) {
|
||||
g_io_channel_close (source);
|
||||
g_io_channel_shutdown (source, 0, NULL);
|
||||
exit(0);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue