10484 ipsecah: cast between incompatible function types

Review Request #1537 — Created March 2, 2019 and submitted

tsoome
illumos-gate
10484
ef19c0c...
general
../../common/inet/ip/ipsecah.c:154:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type]
  (pfi_t)putnext, NULL, ipsecah_open, ipsecah_close, NULL, &info,
  ^
../../common/inet/ip/ipsecah.c:159:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type]
  (pfi_t)ipsecah_wput, NULL, ipsecah_open, ipsecah_close, NULL, &info,
  ^
cc1: all warnings being treated as errors


  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
domag02
  1. 
      
  2. usr/src/uts/common/inet/ip/ipsecah.c (Diff revision 1)
     
     
    Space followed by tab.
  3. usr/src/uts/common/inet/ip/ipsecah.c (Diff revision 1)
     
     
    Space followed by tab.
  4. 
      
tsoome
seeemef@mac.com
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...