10746 telmod: NULL pointer errors

Review Request #1712 — Created April 12, 2019 and submitted

tsoome
illumos-gate
10746
d0c7b55...
general
../../common/io/telmod.c: In function 'rcv_parse':
../../common/io/telmod.c:968:46: error: comparison between pointer and integer [-Werror]
    if ((*mp->b_rptr == '\n') || (*mp->b_rptr == NULL)) {
                                              ^~
../../common/io/telmod.c:1085:17: error: comparison between pointer and integer [-Werror]
         (tmp[1] == NULL))) {
                 ^~
../../common/io/telmod.c: In function 'snd_parse':
../../common/io/telmod.c:1157:13: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     *tmp1++ = NULL;
             ^
../../common/io/telmod.c:1176:14: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      *tmp1++ = NULL;
              ^
cc1: all warnings being treated as errors


wiedi
  1. Ship It!
  2. 
      
rm
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...