ip_output.c:625: warning: cast discards qualifier

From: Ian FREISLICH <ianf_at_clue.co.za>
Date: Thu, 25 Apr 2013 17:46:18 +0200
Hi

/usr/src/sys/netinet/ip_output.c: In function 'ip_output':
/usr/src/sys/netinet/ip_output.c:625: warning: cast discards qualifiers from pointer target type
/usr/src/sys/netinet/ip_output.c:659: warning: cast discards qualifiers from pointer target type
*** [ip_output.o] Error code 1

gw is defined 'const'.

_at_625:
error = (*ifp->if_output)(ifp, m, (struct sockaddr *)gw, ro)

if_output arg3 needs to be protoyped const or gw needs to not be
declared const.

Ian

-- 
Ian Freislich
Received on Thu Apr 25 2013 - 13:46:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:37 UTC