diff options
| author | Anton <anton@picapica> | 2018-07-16 02:46:16 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2018-07-16 02:46:16 +0400 |
| commit | 523e696918070ee04a2556c864951db4e97b842b (patch) | |
| tree | c7b17afa32d737de7c02d978ef2e681c43a6bd87 /tests/test_addnewconn.c | |
| parent | 666cfb5a5d878453fb2675fb6aaa6ea013653aeb (diff) | |
| download | pica-pica-523e696918070ee04a2556c864951db4e97b842b.tar.gz pica-pica-523e696918070ee04a2556c864951db4e97b842b.zip | |
remove garbage
Diffstat (limited to 'tests/test_addnewconn.c')
| -rwxr-xr-x | tests/test_addnewconn.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/test_addnewconn.c b/tests/test_addnewconn.c deleted file mode 100755 index a8acbfd..0000000 --- a/tests/test_addnewconn.c +++ /dev/null @@ -1,42 +0,0 @@ -#include <stdio.h> - #include "../PICA_node.h" - -struct newconn* add_newconn(struct newconn *ncs,int *pos); - -struct newconn t1[64]; - - -int main() -{ -int tpos=0,i; -struct newconn *nc; - -printf(" t1=%X\n",t1); - -nc=add_newconn(t1,&tpos); -printf("1) nc=%X tpos=%i\n",nc,tpos); - -tpos=0; -t1[0].sck=1; - -nc=add_newconn(t1,&tpos); -printf("2) nc=%X tpos=%i\n",nc,tpos); - -tpos=64; -nc=add_newconn(t1,&tpos); -printf("3) nc=%X tpos=%i\n",nc,tpos); - -for (i=0;i<64;i++) -{ -t1[i].sck=65536; -t1[i].tmst=100+i; -} - -t1[63].tmst=5; - -nc=add_newconn(t1,&tpos); -printf("4) nc=%X tpos=%i\n",nc,tpos); - - -return 0; -} |
