]> arthur.barton.de Git - netatalk.git/blobdiff - etc/cnid_dbd/dbd_search.c
Merge master
[netatalk.git] / etc / cnid_dbd / dbd_search.c
index a2efc33cfa6520071f302ee1f4947c4793638bf0..66979424f868f8507c5ba0368d6c330067cb43a3 100644 (file)
@@ -9,7 +9,8 @@
 
 #include <string.h>
 #include <errno.h>
-#include <netatalk/endian.h>
+#include <arpa/inet.h>
+
 #include <atalk/logger.h>
 #include <atalk/cnid_dbd_private.h>
 
@@ -29,7 +30,7 @@ int dbd_search(DBD *dbd, struct cnid_dbd_rqst *rqst, struct cnid_dbd_rply *rply)
     rply->name = resbuf;
     rply->namelen = 0;
 
-    key.data = rqst->name;
+    key.data = (char *)rqst->name;
     key.size = rqst->namelen;
 
     if ((results = dbif_search(dbd, &key, resbuf)) < 0) {