[libbluray-devel] commit: Removed strerror_r() (hpi1 )

git at videolan.org git at videolan.org
Fri Aug 20 22:02:28 CEST 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Aug 20 22:59:45 2010 +0300| [1c00196f928a81f1a63dfd8661aaccd64cb0a336] | committer: hpi1 

Removed strerror_r()

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=1c00196f928a81f1a63dfd8661aaccd64cb0a336
---

 src/libbluray/bdnav/index_parse.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/libbluray/bdnav/index_parse.c b/src/libbluray/bdnav/index_parse.c
index 2c21bb7..9b33bc8 100644
--- a/src/libbluray/bdnav/index_parse.c
+++ b/src/libbluray/bdnav/index_parse.c
@@ -154,12 +154,9 @@ INDX_ROOT *indx_parse(const char *file_name)
 
     fp = file_open(file_name, "rb");
     if (!fp) {
-      char str[100];
-      strerror_r(errno, str, sizeof(str));
-      DEBUG(DBG_NAV | DBG_CRIT, "indx_parse(): error opening %s: %s\n",
-            file_name, str);
-      X_FREE(index);
-      return NULL;
+        DEBUG(DBG_NAV | DBG_CRIT, "indx_parse(): error opening %s\n", file_name);
+        X_FREE(index);
+        return NULL;
     }
 
     bs_init(&bs, fp);



More information about the libbluray-devel mailing list