Browse files

modify gyp

  • Loading branch information...
1 parent e5cc975 commit 2dcd8879bbddf39ab6d935ecd1c58893505301d1 @changchang changchang committed Mar 20, 2013
Showing with 4 additions and 6 deletions.
  1. +0 −4 pomelo.gyp
  2. +4 −2 test/reconn.c
View
4 pomelo.gyp
@@ -12,9 +12,6 @@
'./deps/uv/include',
'./deps/jansson/src',
],
- 'cflags:': [
- '-std=c99',
- ],
'sources': [
'include/pomelo-private/common.h',
'include/pomelo-private/internal.h',
@@ -46,7 +43,6 @@
'src/thread.c',
],
},
-
{
'target_name': 'destroy',
'type': 'executable',
View
6 test/reconn.c
@@ -1,5 +1,6 @@
#include <pomelo.h>
#include <unistd.h>
+#include <string.h>
const char *ip = "127.0.0.1";
int port = 3010;
@@ -10,7 +11,8 @@ void on_hey(pc_client_t *client, const char *event, void *data) {
}
int main() {
- for(int i=0; i<5; i++) {
+ int i;
+ for(i=0; i<20; i++) {
pc_client_t *client = pc_client_new();
struct sockaddr_in address;
@@ -29,7 +31,7 @@ int main() {
printf("going to release: %d.\n", i);
- pc_client_stop(client);
+ pc_client_destroy(client);
}
return 0;

0 comments on commit 2dcd887

Please sign in to comment.