summaryrefslogtreecommitdiff
path: root/legacy/evas/src/bin/evas_cserve2_slaves.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-10-29 01:33:58 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-10-29 01:33:58 +0000
commite9511baea9a3afd738cd9ebd7c877b9cfc1b4cd3 (patch)
tree16adf397ed1cfc91bb1a05cf7813f410c478ab58 /legacy/evas/src/bin/evas_cserve2_slaves.c
parent85543152348134aaa42be85a4c5b98db754d7335 (diff)
evas/cserve2 - removed warnings
SVN revision: 78597
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/bin/evas_cserve2_slaves.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/legacy/evas/src/bin/evas_cserve2_slaves.c b/legacy/evas/src/bin/evas_cserve2_slaves.c
index 4a5d6ac1b0..542a4fb4fe 100644
--- a/legacy/evas/src/bin/evas_cserve2_slaves.c
+++ b/legacy/evas/src/bin/evas_cserve2_slaves.c
@@ -320,6 +320,7 @@ static const char *
320_slave_proc_path_get(const char *name) 320_slave_proc_path_get(const char *name)
321{ 321{
322 char buf[PATH_MAX], cwd[PATH_MAX]; 322 char buf[PATH_MAX], cwd[PATH_MAX];
323 char *ret;
323 324
324 if (name[0] == '/') 325 if (name[0] == '/')
325 { 326 {
@@ -328,7 +329,7 @@ _slave_proc_path_get(const char *name)
328 return eina_stringshare_add(name); 329 return eina_stringshare_add(name);
329 } 330 }
330 331
331 getcwd(cwd, sizeof(cwd)); 332 ret = getcwd(cwd, sizeof(cwd));
332 snprintf(buf, sizeof(buf), "%s/%s", cwd, name); 333 snprintf(buf, sizeof(buf), "%s/%s", cwd, name);
333 if (!access(buf, X_OK)) 334 if (!access(buf, X_OK))
334 return eina_stringshare_add(buf); 335 return eina_stringshare_add(buf);
@@ -453,6 +454,7 @@ static void *
453_slave_thread_cb(void *data) 454_slave_thread_cb(void *data)
454{ 455{
455 ssize_t n; 456 ssize_t n;
457 int ret;
456 Slave_Command cmd; 458 Slave_Command cmd;
457 459
458 Slave_Thread_Data *sd = data; 460 Slave_Thread_Data *sd = data;
@@ -475,7 +477,7 @@ _slave_thread_cb(void *data)
475 continue; 477 continue;
476 } 478 }
477 sd->cmdanswer = sd->cb(sd, &cmd, sd->cmddata, sd->cb_data); 479 sd->cmdanswer = sd->cb(sd, &cmd, sd->cmddata, sd->cb_data);
478 write(sd->write_fd, &cmd, sizeof(cmd)); 480 ret = write(sd->write_fd, &cmd, sizeof(cmd));
479 481
480 n = read(sd->read_fd, &cmd, sizeof(cmd)); 482 n = read(sd->read_fd, &cmd, sizeof(cmd));
481 } 483 }