X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=libatalk%2Facl%2Fcache.c;h=86bc34dcfd59bf4bbb81c9785a072b502fda4e4c;hp=9fe8405ff72a3e9b9e749cbbeb8b97ce5e559d8f;hb=b0bcb8f6b0571592a50ce039882c9319e012a270;hpb=e22bbf78a53bf739dd38383de42a23c95d43c15d diff --git a/libatalk/acl/cache.c b/libatalk/acl/cache.c index 9fe8405f..86bc34dc 100644 --- a/libatalk/acl/cache.c +++ b/libatalk/acl/cache.c @@ -30,7 +30,7 @@ typedef struct cacheduser { unsigned long uid; /* for future use */ uuidtype_t type; - uuidp_t uuid; + unsigned char *uuid; char *name; time_t creationtime; struct cacheduser *prev; @@ -127,7 +127,7 @@ static unsigned char hashuuid(uuidp_t uuid) { int add_cachebyname( const char *inname, const uuidp_t inuuid, const uuidtype_t type, const unsigned long uid _U_) { int ret = 0; char *name = NULL; - uuidp_t uuid = NULL; + unsigned char *uuid = NULL; cacheduser_t *cacheduser = NULL; unsigned char hash; @@ -200,7 +200,7 @@ cleanup: * @returns 0 on sucess, entry found * -1 no entry found */ -int search_cachebyname(const char *name, uuidtype_t *type, uuidp_t uuid) { +int search_cachebyname( const char *name, uuidtype_t *type, unsigned char *uuid) { int ret; unsigned char hash; cacheduser_t *entry; @@ -299,7 +299,7 @@ int search_cachebyuuid( uuidp_t uuidp, char **name, uuidtype_t *type) { int add_cachebyuuid( uuidp_t inuuid, const char *inname, uuidtype_t type, const unsigned long uid _U_) { int ret = 0; char *name = NULL; - uuidp_t uuid = NULL; + unsigned char *uuid = NULL; cacheduser_t *cacheduser = NULL; cacheduser_t *entry; unsigned char hash;