]> pd.if.org Git - nbds/blobdiff - include/mem.h
Bug fix in ht_iter_next() from Rui Ueyama
[nbds] / include / mem.h
index a8a0de4c2feaf27ccb822f1ddbd6a138037d3ed0..91b2757475d0883c91c9585bb1adaa7dde730937 100644 (file)
@@ -4,6 +4,6 @@
  */
 #ifndef MEM_H
 #define MEM_H
-void *nbd_malloc (size_t n);
-void nbd_free (void *x);
+void *nbd_malloc (size_t n) __attribute__((malloc, alloc_size(1)));
+void nbd_free (void *x) __attribute__((nonnull));
 #endif//MEM_H