1
0

patch-support_export_hostname_c 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --- nfs-utils-1.3.0.orig/support/export/hostname.c 2014-03-25 16:12:07.000000000 +0100
  2. +++ nfs-utils-1.3.0/support/export/hostname.c 2014-05-17 21:47:07.085632108 +0200
  3. @@ -91,7 +91,7 @@ host_ntop(const struct sockaddr *sap, ch
  4. * Returns address info structure, or NULL if an error occurs. Caller
  5. * must free the returned structure with freeaddrinfo(3).
  6. */
  7. -__attribute_malloc__
  8. +__attribute__((__malloc__))
  9. struct addrinfo *
  10. host_pton(const char *paddr)
  11. {
  12. @@ -153,7 +153,7 @@ host_pton(const char *paddr)
  13. * if no information is available for @hostname. Caller must free the
  14. * returned structure with freeaddrinfo(3).
  15. */
  16. -__attribute_malloc__
  17. +__attribute__((__malloc__))
  18. struct addrinfo *
  19. host_addrinfo(const char *hostname)
  20. {
  21. @@ -199,7 +199,7 @@ host_addrinfo(const char *hostname)
  22. * the string.
  23. */
  24. #ifdef HAVE_GETNAMEINFO
  25. -__attribute_malloc__
  26. +__attribute__((__malloc__))
  27. char *
  28. host_canonname(const struct sockaddr *sap)
  29. {
  30. @@ -234,7 +234,7 @@ host_canonname(const struct sockaddr *sa
  31. return strdup(buf);
  32. }
  33. #else /* !HAVE_GETNAMEINFO */
  34. -__attribute_malloc__
  35. +__attribute__((__malloc__))
  36. char *
  37. host_canonname(const struct sockaddr *sap)
  38. {
  39. @@ -266,7 +266,7 @@ host_canonname(const struct sockaddr *sa
  40. *
  41. * Caller must free the returned structure with freeaddrinfo(3).
  42. */
  43. -__attribute_malloc__
  44. +__attribute__((__malloc__))
  45. struct addrinfo *
  46. host_reliable_addrinfo(const struct sockaddr *sap)
  47. {
  48. @@ -313,7 +313,7 @@ out_free_hostname:
  49. * Caller must free the returned structure with freeaddrinfo(3).
  50. */
  51. #ifdef HAVE_GETNAMEINFO
  52. -__attribute_malloc__
  53. +__attribute__((__malloc__))
  54. struct addrinfo *
  55. host_numeric_addrinfo(const struct sockaddr *sap)
  56. {
  57. @@ -361,7 +361,7 @@ host_numeric_addrinfo(const struct socka
  58. return ai;
  59. }
  60. #else /* !HAVE_GETNAMEINFO */
  61. -__attribute_malloc__
  62. +__attribute__((__malloc__))
  63. struct addrinfo *
  64. host_numeric_addrinfo(const struct sockaddr *sap)
  65. {