]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/extattrs.c
apple attributes' name are constant
[netatalk.git] / etc / afpd / extattrs.c
index 126bf9cf98e1a5342ae1c8d9fb90c8bbcacd6e8a..af93228ddcbec983be0a32d1751293dba0abcb4c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  $Id: extattrs.c,v 1.10 2009-10-22 13:40:11 franklahm Exp $
+  $Id: extattrs.c,v 1.13 2009-10-28 01:31:57 didg Exp $
   Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
 
   This program is free software; you can redistribute it and/or modify
@@ -23,8 +23,6 @@
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <fcntl.h>
-#include <dirent.h>
 
 #include <atalk/adouble.h>
 #include <atalk/vfs.h>
@@ -39,8 +37,8 @@
 #include "fork.h"
 #include "extattrs.h"
 
-static char *ea_finderinfo = "com.apple.FinderInfo";
-static char *ea_resourcefork = "com.apple.ResourceFork";
+static const char *ea_finderinfo = "com.apple.FinderInfo";
+static const char *ea_resourcefork = "com.apple.ResourceFork";
 
 /* This should be big enough to consecutively store the names of all attributes */
 static char attrnamebuf[ATTRNAMEBUFSIZ];