make lint compile again.

This commit is contained in:
christos 2018-01-17 06:10:27 +00:00
parent 07275707cd
commit 177e5524a5
4 changed files with 7 additions and 3 deletions

View File

@ -2602,7 +2602,7 @@ extern mDNSu8 NumUnreachableDNSServers;
#if (defined(_MSC_VER))
#define mDNSinline static __inline
#elif ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 9)))
#elif ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 9))) || defined(__lint__)
#define mDNSinline static inline
#endif
@ -3562,6 +3562,7 @@ extern int MD5_Final(unsigned char *md, MD5_CTX *c);
struct CompileTimeAssertionChecks_mDNS
{
#ifndef __lint__
// Check that the compiler generated our on-the-wire packet format structure definitions
// properly packed, without adding padding bytes to align fields on 32-bit or 64-bit boundaries.
char assert0[(sizeof(rdataSRV) == 262 ) ? 1 : -1];
@ -3613,6 +3614,7 @@ struct CompileTimeAssertionChecks_mDNS
#if APPLE_OSX_mDNSResponder
char sizecheck_ClientTunnel [(sizeof(ClientTunnel) <= 1256) ? 1 : -1];
#endif
#endif
};
// Routine to initialize device-info TXT record contents

View File

@ -1455,7 +1455,7 @@ mDNSexport int mDNSPlatformMemCmp(const void *dst, const void *src, mDNSu32 len)
mDNSexport void mDNSPlatformQsort(void *base, int nel, int width, int (*compar)(const void *, const void *))
{
return (qsort(base, nel, width, compar));
qsort(base, nel, width, compar);
}
// DNSSEC stub functions

View File

@ -101,7 +101,7 @@ struct ifi_info {
extern struct ifi_info *get_ifi_info_linuxv6(int family, int doaliases);
#endif
#if defined(AF_INET6) && HAVE_IPV6
#if defined(AF_INET6) && HAVE_IPV6 && !defined(INET6_ADDRSTRLEN)
#define INET6_ADDRSTRLEN 46 /*Maximum length of IPv6 address */
#endif

View File

@ -213,8 +213,10 @@ struct CompileTimeAssertionChecks_dnssd_ipc
{
// Check that the compiler generated our on-the-wire packet format structure definitions
// properly packed, without adding padding bytes to align fields on 32-bit or 64-bit boundaries.
#ifndef __lint__
char assert0[(sizeof(client_context_t) == 8) ? 1 : -1];
char assert1[(sizeof(ipc_msg_hdr) == 28) ? 1 : -1];
#endif
};
#endif // DNSSD_IPC_H