10433 bpf: NULL pointer errors

Review Request #1502 - Created Feb. 22, 2019 and submitted

Information
Toomas Soome
illumos-gate
10433
3c9ada3...
Reviewers
general
../../common/io/bpf/bpf.c: In function 'bpf_attachd':
../../common/io/bpf/bpf.c:297:10: error: comparison between pointer and integer [-Werror]
   if (mh != NULL) {
          ^~
../../common/io/bpf/bpf.c: In function 'bpf_ifname':
../../common/io/bpf/bpf.c:1389:16: error: comparison between pointer and integer [-Werror]
  if (d->bd_bif == NULL) {
                ^~
cc1: all warnings being treated as errors

  
Aurélien Larcher
Gergő Mihály Doma
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...