Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 88f87556 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

DnsResolver/res_send.cpp - fixes bugprone-argument-comment warning



Fixes:
  packages/modules/DnsResolver/res_send.cpp:868:38: error: argument name 'sigmask' in comment does not match parameter name '__mask' [bugprone-argument-comment,-warnings-as-errors]
      int n = ppoll(&fds, 1, &timeout, /*sigmask=*/NULL);
                                       ^~~~~~~~~~~~
                                       /*__mask=*/
  bionic/libc/include/poll.h:64:129: note: '__mask' declared here
  int ppoll(struct pollfd* _Nullable __fds, nfds_t __count, const struct timespec* _Nullable __timeout, const sigset_t* _Nullable __mask) __INTRODUCED_IN(21);
                                                                                                                                  ^
  packages/modules/DnsResolver/res_send.cpp:907:67: error: argument name 'sigmask' in comment does not match parameter name '__mask' [bugprone-argument-comment,-warnings-as-errors]
          const int n = ppoll(fdset.data(), fdset.size(), &timeout, /*sigmask=*/nullptr);
                                                                    ^~~~~~~~~~~~
                                                                    /*__mask=*/
  bionic/libc/include/poll.h:64:129: note: '__mask' declared here
  int ppoll(struct pollfd* _Nullable __fds, nfds_t __count, const struct timespec* _Nullable __timeout, const sigset_t* _Nullable __mask) __INTRODUCED_IN(21);

Test: builds
Bug: 153035880
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: Iff535accfc09968f070a93daff9e4a5aded2e4bc
parent c37d081d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment