- Adapted indenation to new agreed upon system

- Added support for second generation scriptcontext based counter
This commit is contained in:
koennecke
2009-02-13 09:00:03 +00:00
parent a3dcad2bfa
commit 91d4af0541
405 changed files with 88101 additions and 88173 deletions

View File

@@ -7,26 +7,28 @@
#include <sics.h>
#include <splitter.h>
static char *aCode[] = {
"internal",
"mugger",
"user",
"spy",
NULL };
static int iCodes = 4;
static char *aCode[] = {
"internal",
"mugger",
"user",
"spy",
NULL
};
static int iCodes = 4;
/*--------------------------------------------------------------------------*/
int decodeSICSPriv(char *privText){
int code = 0;
strtolower(privText);
while(aCode[code] != NULL){
if(strcmp(aCode[code], privText) == 0){
return code;
}
code++;
}
if(code >= iCodes){
return -1;
int decodeSICSPriv(char *privText)
{
int code = 0;
strtolower(privText);
while (aCode[code] != NULL) {
if (strcmp(aCode[code], privText) == 0) {
return code;
}
code++;
}
if (code >= iCodes) {
return -1;
}
return -1;
}