Make privilege property consistent with the GumTree hipadaba schema.

r1690 | ffr | 2007-03-20 16:05:12 +1100 (Tue, 20 Mar 2007) | 2 lines
This commit is contained in:
Ferdi Franceschini
2007-03-20 16:05:12 +11:00
committed by Douglas Clowes
parent 072d0fc1c6
commit efb997cd16

View File

@@ -24,22 +24,22 @@
#include "sicshipadaba.h"
#include "sicshdbadapter.h"
#define PRIVNAM "priv"
#define PRIVNAM "privilege"
/*==================== support code ====================================*/
static void AddPrivProperty(pHdb node, int priv){
char pPriv[80];
switch(priv){
case usInternal:
strcpy(pPriv,"internal");
strcpy(pPriv,"READ_ONLY");
break;
case usMugger:
strcpy(pPriv,"manager");
strcpy(pPriv,"MANAGER");
break;
case usUser:
strcpy(pPriv,"user");
strcpy(pPriv,"USER");
break;
case usSpy:
strcpy(pPriv,"spy");
strcpy(pPriv,"SPY");
break;
default:
assert(0);