moved ipmi_csum to helper as both lan and lanplus use it.

This commit is contained in:
Jeremy Ellington 2004-05-27 15:50:41 +00:00
parent fd96022ec2
commit f72472a649

View File

@ -136,3 +136,12 @@ void signal_handler(int sig, void * handler)
return;
}
}
unsigned char ipmi_csum(unsigned char * d, int s)
{
unsigned char c = 0;
for (; s > 0; s--, d++)
c += *d;
return -c;
}