]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/adouble/ad_lock.h
Opening files without metadata EA may result in broken metadata EA
[netatalk.git] / libatalk / adouble / ad_lock.h
index b08807ab2b7dace80fde77f19c75c3281e981e65..2d15da908bbab2d0673edebcfbb1f258750263f3 100644 (file)
@@ -3,8 +3,8 @@
 
 #include <atalk/adouble.h>
 
-/* this is so that we can keep lists of fds referencing the same file                                                                                                                                                                                                         
- * around. that way, we can honor locks created by the same process                                                                                                                                                                                                           
+/* this is so that we can keep lists of fds referencing the same file
+ * around. that way, we can honor locks created by the same process
  * with the same file. */
 
 #define adf_lock_init(a) do {   \
@@ -19,7 +19,8 @@
             break;                                            \
         for (i = 0; i < (a)->adf_lockcount; i++) {            \
             adf_lock_t *lock = (a)->adf_lock + i;             \
-            if (--(*lock->refcount) < 1)free(lock->refcount); \
+            if (--(*lock->refcount) < 1)                      \
+                free(lock->refcount);                         \
         }                                                     \
         free((a)->adf_lock);                                  \
         adf_lock_init(a);                                     \