]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - src/libadacl.c
Move a few constants out of the libadacl.h header to where they are used.
[apply-default-acl.git] / src / libadacl.c
index b25a43b38cba13d055f26ca848241e041fb6d1c7..8e36230c0c09ace1eb85868ecdecc4155cd457ec 100644 (file)
 #include "libadacl.h"
 
 
+/* Even though most other library functions reliably return -1 for
+ * error, it feels a little wrong to re-use the ACL_ERROR constant.
+ */
+#define CLOSE_ERROR -1
+#define OPEN_ERROR -1
+#define SNPRINTF_ERROR -1
+#define STAT_ERROR -1
+
+
 /**
  * @brief The recursive portion of the @c safe_open function, used to
  *   open a file descriptor in a symlink-safe way when combined with