Project

General

Profile

Actions

Bug #8328

closed

keyserv: sizeof on array function parameter

Added by Toomas Soome about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2017-06-04
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error from gcc 6:

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

Actions #1

Updated by Electric Monk about 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit dd627ace5d331edb6342d966323629e57008b71f

commit  dd627ace5d331edb6342d966323629e57008b71f
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-13T01:52:29.000Z

    8328 keyserv: sizeof on array function parameter
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Gordon Ross <gwr@nexenta.com>

Actions

Also available in: Atom PDF