Fix this warning
warning: scratchtool.c:142: comparison with string literal results in unspecified behavior
and flips the logic.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
printf("error: failed to read log_to_stderr from config\n");
return 1;
}
- if (tmp == "true") {
+ if (strcmp(tmp, "true")) {
printf("error: new setting for log_to_stderr failed to take effect.\n");
return 1;
}
printf("error: failed to read log_to_stderr from config\n");
exit(1);
}
- if (tmp == "true") {
+ if (tmp != "true") {
printf("error: new setting for log_to_stderr failed to take effect.\n");
exit(1);
}