Permalink
Browse files

Replace stuct with FLEXIBLE_ARRAY_MEMBER

Patch by: michaelortmann
  • Loading branch information...
michaelortmann authored and vanosg committed Oct 12, 2018
1 parent fb2b648 commit 0b50cc2def728bbda5fb23e6549ab2d21226ac32
Showing with 2 additions and 1 deletion.
  1. +1 −0 configure.ac
  2. +1 −1 src/mod/dns.mod/coredns.c
View
@@ -97,6 +97,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h std
AC_C_CONST
AC_C_BIGENDIAN
AC_C_INLINE
AC_C_FLEXIBLE_ARRAY_MEMBER
AC_TYPE_INTPTR_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
@@ -151,7 +151,7 @@ typedef struct {
uint16_t class;
uint32_t ttl;
uint16_t datalength;
uint8_t data[];
uint8_t data[FLEXIBLE_ARRAY_MEMBER];
} res_record;
#ifndef HFIXEDSZ

0 comments on commit 0b50cc2

Please sign in to comment.