11441 th_tools: NULL pointer errors

Review Request #2159 - Created July 11, 2019 and submitted - Latest diff uploaded

Information
Toomas Soome
illumos-gate
11441
79a5d78...
Reviewers
general
th_define.c: In function 'walk_callback':
th_define.c:1694:39: error: comparison between pointer and integer [-Werror]
   if (strcmp(driver_name, warg->name) == NULL &&
                                       ^~
th_define.c: In function 'main':
th_define.c:2117:35: error: comparison between pointer and integer [-Werror]
    else if (strcmp(optarg, "PIO") == NULL)
                                   ^~
th_define.c:2119:35: error: comparison between pointer and integer [-Werror]
    else if (strcmp(optarg, "DMA") == NULL)
                                   ^~
th_define.c:2121:47: error: comparison between pointer and integer [-Werror]
    else if (strcmp(optarg, "U4FT_ACC_NO_PIO") == NULL)
                                               ^~
th_define.c:2123:47: error: comparison between pointer and integer [-Werror]
    else if (strcmp(optarg, "U4FT_ACC_NO_DMA") == NULL)
                                               ^~

th_manage.c: In function 'main':
th_manage.c:92:45: error: comparison between pointer and integer [-Werror]
    if (strcmp(argv[2], cmd_table[i].string) == NULL) {
                                             ^~
th_manage.c:118:45: error: comparison between pointer and integer [-Werror]
    if (strcmp(argv[3], cmd_table[i].string) == NULL) {
                                             ^~
cc1: all warnings being treated as errors

  
Loading...