summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/generic/emotion_generic.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/modules/generic/emotion_generic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/legacy/emotion/src/modules/generic/emotion_generic.c b/legacy/emotion/src/modules/generic/emotion_generic.c
index 3ed8cfe8d9..ef7a4c21f8 100644
--- a/legacy/emotion/src/modules/generic/emotion_generic.c
+++ b/legacy/emotion/src/modules/generic/emotion_generic.c
@@ -107,19 +107,19 @@ _player_send_cmd(Emotion_Generic_Video *ev, int cmd)
107 ERR("invalid command to player."); 107 ERR("invalid command to player.");
108 return; 108 return;
109 } 109 }
110 write(ev->fd_write, &cmd, sizeof(cmd)); 110 if (write(ev->fd_write, &cmd, sizeof(cmd)) < 0) perror("write");
111} 111}
112 112
113static void 113static void
114_player_send_int(Emotion_Generic_Video *ev, int number) 114_player_send_int(Emotion_Generic_Video *ev, int number)
115{ 115{
116 write(ev->fd_write, &number, sizeof(number)); 116 if (write(ev->fd_write, &number, sizeof(number)) < 0) perror("write");
117} 117}
118 118
119static void 119static void
120_player_send_float(Emotion_Generic_Video *ev, float number) 120_player_send_float(Emotion_Generic_Video *ev, float number)
121{ 121{
122 write(ev->fd_write, &number, sizeof(number)); 122 if (write(ev->fd_write, &number, sizeof(number)) < 0) perror("write");
123} 123}
124 124
125static void 125static void
@@ -131,8 +131,8 @@ _player_send_str(Emotion_Generic_Video *ev, const char *str, Eina_Bool stringsha
131 len = eina_stringshare_strlen(str) + 1; 131 len = eina_stringshare_strlen(str) + 1;
132 else 132 else
133 len = strlen(str) + 1; 133 len = strlen(str) + 1;
134 write(ev->fd_write, &len, sizeof(len)); 134 if (write(ev->fd_write, &len, sizeof(len)) < 0) perror("write");
135 write(ev->fd_write, str, len); 135 if (write(ev->fd_write, str, len) < 0) perror("write");
136} 136}
137 137
138static Eina_Bool 138static Eina_Bool