]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/acl/cache.c
Code cleanup while hunting a memory leak
[netatalk.git] / libatalk / acl / cache.c
index 3b3a888f8682629393038d799b0782e9abe19cb4..99f59849272fdff3e45b3aade719a0e3493fcf56 100644 (file)
@@ -195,6 +195,9 @@ cleanup:
     return ret;
 }
 
+/* 
+ * Caller provides buffer uuid for result
+ */
 int search_cachebyname( const char *name, uuidtype_t type, uuidp_t uuid) {
     int ret;
     unsigned char hash;
@@ -248,6 +251,9 @@ int search_cachebyname( const char *name, uuidtype_t type, uuidp_t uuid) {
     return -1;
 }
 
+/* 
+ * Caller must free allocated name
+ */
 int search_cachebyuuid( uuidp_t uuidp, char **name, uuidtype_t *type) {
     int ret;
     unsigned char hash;