Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8632 → Rev 8633

/programs/system/shell/modules/module_program_console.c
7,6 → 7,7
 
char name[32];
char *buffer;
char *buf1k;
int result;
int i;
char command;
17,8 → 18,8
strcat(name, "-SHELL");
 
buffer = NULL;
buf1k = NULL;
 
 
for (i = 0; i < 30; i++)
{
result = kol_buffer_open(name, SHM_OPEN | SHM_WRITE, 0, &buffer);
41,7 → 42,6
switch (command)
{
case SC_EXIT:
*buffer = SC_OK;
is_end = 1;
76,6 → 76,14
*buffer = SC_OK;
break;
case SC_GET_PID:
buf1k=malloc(1024);
kol_process_info(-1, buf1k);
memcpy(buffer+1, buf1k+30, sizeof(unsigned));
*buffer = SC_OK;
free(buf1k);
break;
default:
#if LANG_ENG
printf (" Error in console application.\n\r");