patch-utils_statd_sm-notify_c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- nfs-utils-1.3.0.orig/utils/statd/sm-notify.c 2014-03-25 16:12:07.000000000 +0100
  2. +++ nfs-utils-1.3.0/utils/statd/sm-notify.c 2014-05-17 21:47:07.089632108 +0200
  3. @@ -74,7 +74,7 @@ static int record_pid(void);
  4. static struct nsm_host * hosts = NULL;
  5. -__attribute_malloc__
  6. +__attribute__((__malloc__))
  7. static struct addrinfo *
  8. smn_lookup(const char *name)
  9. {
  10. @@ -149,7 +149,7 @@ smn_get_hostname(const struct sockaddr *
  11. * if the canonical name doesn't exist or cannot be determined.
  12. * The caller must free the result with free(3).
  13. */
  14. -__attribute_malloc__
  15. +__attribute__((__malloc__))
  16. static char *
  17. smn_verify_my_name(const char *name)
  18. {
  19. @@ -189,7 +189,7 @@ smn_verify_my_name(const char *name)
  20. return retval;
  21. }
  22. -__attribute_malloc__
  23. +__attribute__((__malloc__))
  24. static struct nsm_host *
  25. smn_alloc_host(const char *hostname, const char *mon_name,
  26. const char *my_name, const time_t timestamp)
  27. @@ -343,7 +343,7 @@ static int smn_socket(void)
  28. * If admin specified a source address or srcport, then convert those
  29. * to a sockaddr and return it. Otherwise, return an ANYADDR address.
  30. */
  31. -__attribute_malloc__
  32. +__attribute__((__malloc__))
  33. static struct addrinfo *
  34. smn_bind_address(const char *srcaddr, const char *srcport)
  35. {