[vte/vte-0-34] [stream] Finish off commit 2cf872c90d85163f297e3a0fd56866a29849e0bf
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-34] [stream] Finish off commit 2cf872c90d85163f297e3a0fd56866a29849e0bf
- Date: Mon, 30 Sep 2013 00:51:01 +0000 (UTC)
commit cf0c865523ea7cc6f663533d9d15cb2b6060b12a
Author: Behdad Esfahbod <behdad behdad org>
Date: Sun Sep 29 20:37:20 2013 -0400
[stream] Finish off commit 2cf872c90d85163f297e3a0fd56866a29849e0bf
src/vtestream-file.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/vtestream-file.h b/src/vtestream-file.h
index 601db53..4adf462 100644
--- a/src/vtestream-file.h
+++ b/src/vtestream-file.h
@@ -54,7 +54,7 @@ _xtruncate (gint fd, gsize offset)
{
int ret;
- if (G_UNLIKELY (!fd))
+ if (G_UNLIKELY (fd == -1))
return;
do {
@@ -67,7 +67,7 @@ _xpread (int fd, char *data, gsize len, gsize offset)
{
gsize ret, total = 0;
- if (G_UNLIKELY (len && !fd))
+ if (G_UNLIKELY (fd == -1))
return 0;
while (len) {
@@ -94,7 +94,7 @@ _xpwrite (int fd, const char *data, gsize len, gsize offset)
gsize ret;
gboolean truncated = FALSE;
- g_assert (fd || !len);
+ g_assert (fd != -1 || !len);
while (len) {
ret = pwrite (fd, data, len, offset);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]