diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-07-17 11:50:16 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-07-17 11:51:01 -0400 |
commit | 2e7e8e22154ce37ad8b95d29b276be8a25f67e8f (patch) | |
tree | b24464dc37593b949ffa782a9d2dbefcfdce7ca3 /src | |
parent | 566279c5e7f3d2e5c9215a8fdbc58406e22e7aed (diff) | |
download | runes-2e7e8e22154ce37ad8b95d29b276be8a25f67e8f.tar.gz runes-2e7e8e22154ce37ad8b95d29b276be8a25f67e8f.zip |
suppress some compiler warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/pty-unix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pty-unix.c b/src/pty-unix.c index 6cc4996..3c86614 100644 --- a/src/pty-unix.c +++ b/src/pty-unix.c @@ -65,7 +65,8 @@ void runes_pty_spawn_subprocess(RunesTerm *t, char *envp[], char *cwd) close(pty->slave); if (cwd) { - chdir(cwd); + // XXX + if (chdir(cwd)) {} } if (envp) { @@ -133,7 +134,8 @@ void runes_pty_set_window_size( void runes_pty_write(RunesTerm *t, char *buf, size_t len) { - write(t->pty->master, buf, len); + // XXX + if (write(t->pty->master, buf, len)) {} } void runes_pty_request_close(RunesTerm *t) |