shell test

This commit is contained in:
Carl-Benedikt Krüger 2011-07-26 14:22:37 +02:00
parent 77af84f416
commit 118f0349cc
2 changed files with 7 additions and 4 deletions

View file

@ -1403,10 +1403,6 @@ int mmnif_close()
* - this will stop the polling thread i.e.
*/
/* resources has to be freed here
* will be added soon ;)
*/
active = FALSE;
#ifdef WIN32
free(mmnif->tx_buff);

View file

@ -12,9 +12,13 @@ static Client cli;
static int iamsrv = 0;
char shellbuffer[512];
#include <metalsvm/stdio.h>
#define SHELLDEBUGPRINTF(x,...) ksprintf(shellbuffer,x,##__VA_ARGS__);shelldebugprint(shellbuffer);
void shelldebugprint(char* x)
{
kprintf("debugprinting");
@ -66,6 +70,9 @@ void shell_init(int srv_or_cli)
cli_init(&cli);
while (cli_ConnectTo(&cli,"192.168.0.1",23,0));
sleep(1);
}
sleep(3);
SHELLDEBUGPRINTF("I AM CORE NO. %d",srv_or_cli);
}