Project

General

Profile

Actions

Bug #10659

closed

sha2: NULL pointer errors

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-04-01
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with NULL pointer:

    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/thread.h:36,
                     from ../../common/sys/modctl.h:35,
                     from ../../common/crypto/io/sha2_mod.c:27:
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/crypto/io/sha2_mod.c:223:56: note: in expansion of macro 'NULL'
     static crypto_kcf_provider_handle_t sha2_prov_handle = NULL;
                                                            ^~~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk about 3 years ago

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

git commit d659c726b2a72b51ac2dc9a7f6878463fc070c87

commit  d659c726b2a72b51ac2dc9a7f6878463fc070c87
Author: Toomas Soome <tsoome@me.com>
Date:   2019-04-10T06:10:19.000Z

    10659 sha2: NULL pointer errors
    Reviewed by: Dan McDonald <danmcd@joyent.com>
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF