[libdmapsharing] Error out in dpap-share.c if an image file can not be mmap'ed Signed-off-by: W. Michael Petullo <mik



commit 9d464ffbecc9354d1d1061f3c169884b401f9c51
Author: W. Michael Petullo <mike flyn org>
Date:   Sun Aug 22 22:45:04 2010 -0500

    Error out in dpap-share.c if an image file can not be mmap'ed
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dpap-share.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libdmapsharing/dpap-share.c b/libdmapsharing/dpap-share.c
index 41d53a7..d97ec98 100644
--- a/libdmapsharing/dpap-share.c
+++ b/libdmapsharing/dpap-share.c
@@ -440,7 +440,7 @@ add_entry_to_mlcl (gpointer id,
 
 			mapped_file = file_to_mmap (location);
 			if (mapped_file == NULL) {
-				/* FIXME: Error out ! */
+				g_error ("Error opening %s", location);
 			} else {
 				data = (unsigned char *) g_mapped_file_get_contents (mapped_file);
 				size = g_mapped_file_get_length (mapped_file);



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