patch-utils_statd_hostname_c 1.0 KB

1234567891011121314151617181920212223242526272829
  1. --- nfs-utils-1.3.0.orig/utils/statd/hostname.c 2014-03-25 16:12:07.000000000 +0100
  2. +++ nfs-utils-1.3.0/utils/statd/hostname.c 2014-05-17 21:47:07.089632108 +0200
  3. @@ -105,7 +105,7 @@ statd_present_address(const struct socka
  4. * Look up the hostname; report exceptional errors. Caller must
  5. * call freeaddrinfo(3) if a valid addrinfo is returned.
  6. */
  7. -__attribute_malloc__
  8. +__attribute__((__malloc__))
  9. static struct addrinfo *
  10. get_addrinfo(const char *hostname, const struct addrinfo *hint)
  11. {
  12. @@ -184,7 +184,7 @@ get_nameinfo(const struct sockaddr *sap,
  13. * We won't monitor peers that don't have a reverse map. The canonical
  14. * name gives us a key for our monitor list.
  15. */
  16. -__attribute_malloc__
  17. +__attribute__((__malloc__))
  18. char *
  19. statd_canonical_name(const char *hostname)
  20. {
  21. @@ -234,7 +234,7 @@ statd_canonical_name(const char *hostnam
  22. * NULL if some error occurs. Caller must free the returned
  23. * list with freeaddrinfo(3).
  24. */
  25. -__attribute_malloc__
  26. +__attribute__((__malloc__))
  27. static struct addrinfo *
  28. statd_canonical_list(const char *hostname)
  29. {