I messed up their cherry-pick merging.
fs->have_dirs = TRUE;
} else if (strcmp(arg, "no-fsync") == 0) {
fs->disable_fsync = TRUE;
- } else if (str_begins(arg, "accurate-mtime") == 0) {
+ } else if (str_begins(arg, "accurate-mtime")) {
fs->accurate_mtime = TRUE;
} else if (str_begins(arg, "mode=")) {
unsigned int mode;
bool noreply, struct program_client **pc_r,
const char **error_r)
{
- if (str_begins(uri, "exec:") == 0) {
+ if (str_begins(uri, "exec:")) {
*pc_r = program_client_local_create(
uri+5,
args,
set);
return 0;
- } else if (str_begins(uri, "unix:") == 0) {
+ } else if (str_begins(uri, "unix:")) {
*pc_r = program_client_unix_create(
uri+5,
args,