GCC 4.8 was producing this error:
argument to ‘sizeof’ in ‘strncmp’ call is the same expression as the
second source; did you mean to provide an explicit length?
[-Werror=sizeof-pointer-memaccess]
Signed-off-by: Intel
return -1;
}
if (strncmp(buf, string_elt_strs[i].result,
return -1;
}
if (strncmp(buf, string_elt_strs[i].result,
- sizeof(string_elt_strs[i].result)) != 0) {
printf("Error: result mismatch!\n");
return -1;
}
printf("Error: result mismatch!\n");
return -1;
}