forked from AuroraMiddleware/gtk
Fix a compilation warning
Catch the returned value of write()
This commit is contained in:
parent
232fca6e95
commit
33f53e1d04
@ -429,11 +429,14 @@ static void _send_to_festival (const gchar *role_name,
|
||||
|
||||
static void _festival_write (const gchar *command_string, int fd)
|
||||
{
|
||||
gssize n_bytes;
|
||||
|
||||
if (fd < 0) {
|
||||
perror("socket");
|
||||
return;
|
||||
}
|
||||
write(fd, command_string, strlen(command_string));
|
||||
n_bytes = write(fd, command_string, strlen(command_string));
|
||||
g_assert (n_bytes == strlen(command_string));
|
||||
}
|
||||
|
||||
static void _speak_caret_event (AtkObject *aobject)
|
||||
|
Loading…
Reference in New Issue
Block a user