Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Unified Diff: srtp/crypto/kernel/alloc.c

Issue 889083003: Update libsrtp to upstream 1.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Updated to libsrtp 1.5.1 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « srtp/crypto/include/xfm.h ('k') | srtp/crypto/kernel/crypto_kernel.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: srtp/crypto/kernel/alloc.c
diff --git a/srtp/crypto/kernel/alloc.c b/srtp/crypto/kernel/alloc.c
index 5dd094749000d19350a3ce0b892eecbf00838ee4..e728798c8101efe6acae553fe05abf09ce20358d 100644
--- a/srtp/crypto/kernel/alloc.c
+++ b/srtp/crypto/kernel/alloc.c
@@ -42,6 +42,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+ #include <config.h>
+#endif
+
#include "alloc.h"
#include "crypto_kernel.h"
@@ -73,8 +77,9 @@ crypto_alloc(size_t size) {
if (ptr) {
debug_print(mod_alloc, "(location: %p) allocated", ptr);
- } else
+ } else {
debug_print(mod_alloc, "allocation failed (asked for %d bytes)\n", size);
+ }
return ptr;
}
@@ -98,9 +103,10 @@ crypto_alloc(size_t size) {
if (ptr) {
debug_print(mod_alloc, "(location: %p) allocated", ptr);
- } else
+ } else {
debug_print(mod_alloc, "allocation failed (asked for %d bytes)\n", size);
-
+ }
+
return ptr;
}
« no previous file with comments | « srtp/crypto/include/xfm.h ('k') | srtp/crypto/kernel/crypto_kernel.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698