]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/extattrs.c
apple attributes' name are constant
[netatalk.git] / etc / afpd / extattrs.c
index 05811188b2d0817710d5b6aed714b86af9ec66c1..af93228ddcbec983be0a32d1751293dba0abcb4c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  $Id: extattrs.c,v 1.11 2009-10-27 23:35:17 didg 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,7 +23,6 @@
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <fcntl.h>
 
 #include <atalk/adouble.h>
 #include <atalk/vfs.h>
@@ -38,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];