11401 oamuser: NULL pointer errors

Review Request #2123 - Created July 11, 2019 and submitted

Information
Toomas Soome
illumos-gate
11401
df5e983...
Reviewers
general
vgname.c: In function 'valid_gname':
vgname.c:57:19: error: comparison between pointer and integer [-Werror]
  for (c = *ptr; c != NULL; ptr++, c = *ptr) {
                   ^~
vlogin.c: In function 'valid_login':
vlogin.c:65:11: error: comparison between pointer and integer [-Werror]
  for (; c != NULL; ptr++, c = *ptr) {
           ^~
vproj.c: In function 'valid_project':
vproj.c:59:27: error: comparison between pointer and integer [-Werror]
  for (ptr = project; *ptr != NULL; ptr++) {
                           ^~
vprojname.c: In function 'valid_projname':
vprojname.c:56:19: error: comparison between pointer and integer [-Werror]
  for (c = *ptr; c != NULL; ptr++, c = *ptr) {
                   ^~
cc1: all warnings being treated as errors

  
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...