[libbluray-devel] Remove double logging

hpi1 git at videolan.org
Tue Jan 6 15:39:30 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Jan  2 16:56:10 2015 +0200| [6f554657fab52aacbe46a09b52d9d2c63e25ac94] | committer: hpi1

Remove double logging

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

 src/util/array.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/util/array.c b/src/util/array.c
index e35bd24..ae3829b 100644
--- a/src/util/array.c
+++ b/src/util/array.c
@@ -20,7 +20,6 @@
 #include "array.h"
 
 #include "macro.h"
-#include "logging.h"
 
 #include <stdlib.h>
 
@@ -29,13 +28,11 @@ void *array_alloc(size_t n, size_t sz)
 {
     size_t size = sizeof(void *) + sz;
     if (size < sz) {
-        BD_DEBUG(DBG_CRIT, "array_alloc(): overflow\n");
         return NULL;
     }
 
-    uint8_t *p = (uint8_t *)calloc(n, size);
+    unsigned char *p = (unsigned char *)calloc(n, size);
     if (!p) {
-        BD_DEBUG(DBG_CRIT, "array_alloc(): out of memory\n");
         return NULL;
     }
 



More information about the libbluray-devel mailing list