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

Unified Diff: native_client_sdk/src/examples/debugging/hello_world.c

Issue 11882012: Convert all project to use common.mk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix missing common.mk path Created 7 years, 11 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
Index: native_client_sdk/src/examples/debugging/hello_world.c
diff --git a/native_client_sdk/src/examples/debugging/hello_world.c b/native_client_sdk/src/examples/debugging/hello_world.c
index b081062cfd562d98fac07522260482782b3fcee0..a5dd33342fa50993bc3077532b1787880916e15e 100644
--- a/native_client_sdk/src/examples/debugging/hello_world.c
+++ b/native_client_sdk/src/examples/debugging/hello_world.c
@@ -90,7 +90,8 @@ static struct PP_Var CStrToVar(const char* str) {
static void PostCompletionCallback(void* user_data, int32_t result) {
- ppb_messaging_interface->PostMessage(g_Instance, CStrToVar(user_data));
+ const char *str = (const char *) user_data;
+ ppb_messaging_interface->PostMessage(g_Instance, CStrToVar(str));
free(user_data);
}
@@ -229,7 +230,7 @@ static PP_Bool Instance_HandleDocumentLoad(PP_Instance instance,
/**
* Handles message from JavaScript.
- *
+ *
* Any message from JS is a request to cause the main thread to crash.
*/
static void Messaging_HandleMessage(PP_Instance instance,

Powered by Google App Engine
This is Rietveld 408576698