]> granicus.if.org Git - sudo/commitdiff
No longer need __malloc_like
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 20 Jun 2015 22:56:57 +0000 (16:56 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 20 Jun 2015 22:56:57 +0000 (16:56 -0600)
include/sudo_compat.h

index 4161ee887d16a209f1276cc2dc6ef9ca732ac072..c41cc074032b20601dfe63fc26505fe078378a9a 100644 (file)
 # endif
 #endif
 
-/* Hint to compiler that returned pointer is unique (malloc but not realloc). */
-#ifndef __malloc_like
-# if __GNUC_PREREQ__(2, 96)
-#  define __malloc_like        __attribute__((__malloc__))
-# else
-#  define __malloc_like
-# endif
-#endif
-
 /*
  * Given the pointer x to the member m of the struct s, return
  * a pointer to the containing structure.