8328 keyserv: sizeof on array function parameter

Review Request #564 — Created June 4, 2017 and submitted

tsoome
illumos-gate
8328
0e9c1f3...
general
keyserv.c: In function '__key_get_conv_2_svc':
keyserv.c:759:11: error: 'sizeof' on array function parameter 'arg' will return size of 'char *' [-Werror=sizeof-array-argument]
    sizeof (arg), arg);
           ^
keyserv.c:753:9: note: declared here
  keybuf arg;
         ^~~
cc1: all warnings being treated as errors


marcel
  1. 
      
  2. usr/src/cmd/keyserv/keyserv.c (Diff revision 1)
     
     

    I think sizeof (keybuf) would work better here.

    1. yes, you are right.

  3. 
      
tsoome
marcel
  1. Ship It!
  2. 
      
rm
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...