Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 589 → Rev 590

/shark/trunk/kernel/exchand.c
18,11 → 18,11
 
/**
------------
CVS : $Id: exchand.c,v 1.6 2004-04-18 20:18:21 giacomo Exp $
CVS : $Id: exchand.c,v 1.7 2004-04-25 12:53:42 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.6 $
Last update: $Date: 2004-04-18 20:18:21 $
Revision: $Revision: 1.7 $
Last update: $Date: 2004-04-25 12:53:42 $
------------
**/
 
80,7 → 80,9
"UDP: Bad checksum"
};
 
static char shutdown_message_buffer[500];
#define SHUTDOWN_BUFFER 1000
 
static char shutdown_message_buffer[SHUTDOWN_BUFFER];
static int myflag_shutdown = 0;
 
/*
94,7 → 96,7
 
myflag = 0;
 
for(i=0;i<500;i++) shutdown_message_buffer[i] = 0;
for(i=0;i<SHUTDOWN_BUFFER;i++) shutdown_message_buffer[i] = 0;
 
sys_atrunlevel(theend, NULL, RUNLEVEL_AFTER_EXIT);
 
121,13 → 123,17
 
int sys_shutdown_message(char *fmt,...)
{
char temp[100];
va_list parms;
int result = -1;
myflag_shutdown = 1;
va_start(parms,fmt);
result = vsprintf(shutdown_message_buffer+strlen(shutdown_message_buffer),fmt,parms);
result = vsprintf(temp,fmt,parms);
va_end(parms);
 
if ((strlen(shutdown_message_buffer) + strlen(temp)) < SHUTDOWN_BUFFER)
strcat(shutdown_message_buffer,temp);
return(result);