Fix a compilation warning

Catch the returned value of write()
This commit is contained in:
Javier Jardón
2009-10-20 20:43:44 +02:00
parent 232fca6e95
commit 33f53e1d04

View File

@ -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)