]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/util.h
Support for using $u username variable in AFP volume definitions
[netatalk.git] / include / atalk / util.h
index 38e1e7b2dd4f36a115c4ca2a73ba5b0d8b60d326..312160be008947f71dfa066dd90d7f7e2c9fb6a3 100644 (file)
 #define ntoh64(x)       (hton64(x))
 #endif
 
+#ifndef SAFE_FREE
+#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)
+#endif
+
 #ifdef WITH_SENDFILE
 extern ssize_t sys_sendfile (int __out_fd, int __in_fd, off_t *__offset,size_t __count);
 #endif