]> arthur.barton.de Git - netatalk.git/commitdiff
Fixes
authorFrank Lahm <franklahm@googlemail.com>
Mon, 27 Sep 2010 20:53:28 +0000 (22:53 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Mon, 27 Sep 2010 20:53:28 +0000 (22:53 +0200)
include/atalk/uuid.h
libatalk/acl/ldap.c
libatalk/acl/uuid.c

index 7c28603a6c0f573e96506383f40668ba6b15cd0a..d9ae18924bc35c986e8c757fbcff2403c86281c6 100644 (file)
@@ -1,5 +1,4 @@
 /*
-   $Id: uuid.h,v 1.1 2009-02-02 11:55:01 franklahm Exp $
    Copyright (c) 2008,2009 Frank Lahm <franklahm@gmail.com>
 
    This program is free software; you can redistribute it and/or modify
@@ -42,7 +41,7 @@ extern char *ldap_uid_attr;
  ********************************************************/
 
 extern int getuuidfromname( const char *name, uuidtype_t type, uuidp_t uuid);
-extern int getnamefromuuid( uuidp_t uuidp, char **name, uuidtype_t *type);
+extern int getnamefromuuid( const uuidp_t uuidp, char **name, uuidtype_t *type);
 extern int uuid_bin2string( uuidp_t uuidp, char **uuidstring);
 extern void uuid_string2bin( const char *uuidstring, uuidp_t uuid);
 
index 379ee73772f1ac99271827aa4096645afbceaae1..d177ea6b62ea85531f96b577273e57954dccbb23 100644 (file)
@@ -1,5 +1,4 @@
 /*
-  $Id: ldap.c,v 1.7 2010-04-23 11:37:06 franklahm Exp $
   Copyright (c) 2008,2009 Frank Lahm <franklahm@gmail.com>
 
   This program is free software; you can redistribute it and/or modify
@@ -22,6 +21,7 @@
 #include <sys/time.h>
 #include <string.h>
 #include <errno.h>
+#define LDAP_DEPRECATED 1
 #include <ldap.h>
 
 #include <atalk/logger.h>
index e8b96504c61a4b5f13388fc4197725cb26b27312..7e688826ae10d3f1651f1705643555d8fdeaf1a4 100644 (file)
@@ -151,7 +151,7 @@ cleanup:
  *
  * Caller must free name appropiately.
  */
-int getnamefromuuid( uuidp_t uuidp, char **name, uuidtype_t *type) {
+int getnamefromuuid(const uuidp_t uuidp, char **name, uuidtype_t *type) {
     int ret;
     char *uuid_string = NULL;