Files
Jeffrey Altman ec37879038 appl/tests: auditdns eliminate use of 'restrict' keyword if !C99
The 'restrict' keyword was introduced in C99 and provides a hint to
the compiler that can be used to better optimized code.  The 'restrict'
keyword results in build failures when the compiler is not C99.

  auditdns.c:101:37: error: expected ‘;’, ‘,’ or ‘)’ before ‘hints’
     const struct addrinfo *restrict hints,
                                     ^
  auditdns.c:409:45: error: expected ‘;’, ‘,’ or ‘)’ before ‘sa’
     getnameinfo(const struct sockaddr *restrict sa, socklen_t salen,
                                                 ^

This change defines 'register' to nothing if the compiler does not
implement the C99 standard.

Observed with gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44).
2024-09-03 13:41:22 -04:00
..
2008-09-13 09:21:03 +00:00
2011-10-29 19:14:14 -07:00
2023-01-04 01:36:03 -06:00
2008-09-13 09:21:03 +00:00
2012-11-27 22:01:37 -08:00
2008-09-13 09:21:03 +00:00
2008-09-13 09:21:03 +00:00
2012-03-07 07:58:50 -08:00
2022-02-11 15:19:58 -06:00