Skip to content

Commit b42f7c3

Browse files
committed
Fix accidental backward compat breaking for nob_cmd_run_async()
1 parent a257c56 commit b42f7c3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nob.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ NOBDEF void nob_cmd_render(Nob_Cmd cmd, Nob_String_Builder *render);
417417

418418
// Run command asynchronously
419419
NOB_DEPRECATED("Use `nob_cmd_run(&cmd, .async = &procs, .no_reset = true)` instead.")
420-
NOBDEF Nob_Proc nob_cmd_run_async(Nob_Cmd *cmd);
420+
NOBDEF Nob_Proc nob_cmd_run_async(Nob_Cmd cmd);
421421

422422
// nob_cmd_run_async_and_reset() is just like nob_cmd_run_async() except it also resets cmd.count to 0
423423
// so the Nob_Cmd instance can be seamlessly used several times in a row
@@ -1075,9 +1075,9 @@ NOBDEF Nob_Proc nob_cmd_start_process(Nob_Cmd cmd, Nob_Fd *fdin, Nob_Fd *fdout,
10751075
#endif
10761076
}
10771077

1078-
NOBDEF Nob_Proc nob_cmd_run_async(Nob_Cmd *cmd)
1078+
NOBDEF Nob_Proc nob_cmd_run_async(Nob_Cmd cmd)
10791079
{
1080-
return nob_cmd_start_process(*cmd, NULL, NULL, NULL);
1080+
return nob_cmd_start_process(cmd, NULL, NULL, NULL);
10811081
}
10821082

10831083
NOBDEF Nob_Proc nob_cmd_run_async_and_reset(Nob_Cmd *cmd)

0 commit comments

Comments
 (0)