[gdm] Fix bug #591937 so code compiles on FreeBSD.



commit 7934d1a662d7354345e7b62f393c2fdfa4b4caba
Author: Brian Cameron <Brian Cameron sun com>
Date:   Mon May 24 17:00:32 2010 -0500

    Fix bug #591937 so code compiles on FreeBSD.

 common/gdm-common.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/common/gdm-common.c b/common/gdm-common.c
index b428f5b..8435161 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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]