11631 SPARC NULL pointer error in libds

Review Request #2265 — Created Aug. 28, 2019 and submitted

ptribble
illumos-gate
11631
general
NULL pointer errors building libds on SPARC:

../common/libds.c:105: error: passing argument 1 of 'ds_hdl_to_dslibentry' makes integer from pointer without a cast
../common/libds.c:128: error: comparison between pointer and integer
../common/libds.c:145: error: comparison between pointer and integer
../common/libds.c:204: error: assignment makes integer from pointer without a cast
../common/libds.c:300: error: assignment makes integer from pointer without a cast
../common/libds.c:717: error: comparison between pointer and integer

Build clean; wsdiff shows no changes.

  • 0
  • 0
  • 0
  • 1
  • 1
Description From Last Updated
yuripv
  1. Ship It!
  2. 
      
citrus
  1. 
      
  2. usr/src/lib/libds/common/libds.c (Diff revision 1)
     
     

    How about using DS_INVALID_HDL instead of the literal 0?
    (Ship it either way)

    1. Looking through libds.c, all other comparisons on a dsl_hdl (which is what the ds_hdl_to_dslibentry does) are to a literal 0, so I think 0 is fine for consistency.

  3. 
      
ptribble
Review request changed

Status: Closed (submitted)

Loading...