Menu

#115 Fix incompatible pointer type (patch)

1.3.1
closed
None
2017-03-04
2015-02-25
No

Building 1.3.1 gets this warning:

opendmarc_dns.c: In function 'dmarc_dns_get_record':
opendmarc_dns.c:220:50: warning: passing argument 2 of 'opendmarc_policy_library_dns_hook' from incompatible pointer type
&_res.nsaddr_list);
^
In file included from opendmarc_dns.c:15:0:
opendmarc_internal.h:233:6: note: expected 'struct sockaddr_in ' but argument is of type 'struct sockaddr_in ()[3]'
void opendmarc_policy_library_dns_hook(int nscountp, struct sockaddr_in nsaddr_list);

Patch which rectifies the warning is attached. Please credit Sebastian A. Siewior for the fix, since it's his patch, I'm just forwarding it along.

1 Attachments

Discussion

  • A. Schulze

    A. Schulze - 2016-04-28

    the patch is confirmed to work

     
  • Murray S. Kucherawy

    • assigned_to: Murray S. Kucherawy
     
  • Murray S. Kucherawy

    Patch applied.

     
  • Murray S. Kucherawy

    • status: open --> closed
     
  • Murray S. Kucherawy

    Fixed in 1.3.2.

     

Log in to post a comment.