1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-01 04:47:16 +00:00

Multiple services support in searpc server.

This commit is contained in:
killing
2011-12-25 11:07:36 +08:00
parent 0b0d51accd
commit e0dbd4c248
5 changed files with 104 additions and 26 deletions

View File

@@ -77,7 +77,7 @@ static void
strlen_callback(void *vresult, void *user_data, GError *error)
{
const char *str = user_data;
int len = (int)(long)vresult;
int len = *((int *)vresult);
g_assert (strcmp(str, "user data") == 0);
printf("the length of string 'hello searpc' is %d.\n", len);