summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Cameron <Brian.Cameron@sun.com>2010-05-24 17:00:32 -0500
committerBrian Cameron <Brian.Cameron@sun.com>2010-05-24 17:00:32 -0500
commit7934d1a662d7354345e7b62f393c2fdfa4b4caba (patch)
treeabd98cb62ac9fc3ff0537d4e78396ed7376429ac
parent3aa2c2c687d87de58c17ae4179361f8822f3220f (diff)
downloadgdm-7934d1a662d7354345e7b62f393c2fdfa4b4caba.tar.gz
Fix bug #591937 so code compiles on FreeBSD.
-rw-r--r--common/gdm-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/gdm-common.c b/common/gdm-common.c
index b428f5b8..8435161e 100644
--- a/common/gdm-common.c
+++ b/common/gdm-common.c
@@ -382,8 +382,8 @@ _read_bytes (int fd,
if (premature_eof) {
g_set_error (error,
G_FILE_ERROR,
- g_file_error_from_errno (ENODATA),
- "%s", g_strerror (ENODATA));
+ G_FILE_ERROR_FAILED,
+ "No data available");
return FALSE;
} else if (bytes_left_to_read > 0) {