Fix a compilation warning
Catch the returned value of write()
This commit is contained in:
@ -429,11 +429,14 @@ static void _send_to_festival (const gchar *role_name,
|
|||||||
|
|
||||||
static void _festival_write (const gchar *command_string, int fd)
|
static void _festival_write (const gchar *command_string, int fd)
|
||||||
{
|
{
|
||||||
|
gssize n_bytes;
|
||||||
|
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
perror("socket");
|
perror("socket");
|
||||||
return;
|
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)
|
static void _speak_caret_event (AtkObject *aobject)
|
||||||
|
|||||||
Reference in New Issue
Block a user