# format_job_tidy

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L442
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-format-c-format_job_tidy/

```c
static void format_job_tidy(struct format_job_tree *jobs, int force)
```

## Parameters

- `jobs` (`struct format_job_tree *`)
- `force` (`int`)

## Called by

- [`format_lost_client`](/en/tmux/latest/reference/c-function-format_lost_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L498)
- [`format_tidy_jobs`](/en/tmux/latest/reference/c-function-format_tidy_jobs/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L486)

## Calls

- [`job_free`](/en/tmux/latest/reference/c-function-job_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L456)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L453)

## Referenced declarations

- [`format_job.cmd`](/en/tmux/latest/reference/c-struct-format_job-cmd/) (attribute)
- [`format_job.expanded`](/en/tmux/latest/reference/c-struct-format_job-expanded/) (attribute)
- [`format_job_tree`](/en/tmux/latest/reference/c-struct-format_job_tree/) (struct)
- [`format_job.job`](/en/tmux/latest/reference/c-struct-format_job-job/) (attribute)
- [`format_job.last`](/en/tmux/latest/reference/c-struct-format_job-last/) (attribute)
- [`format_job.out`](/en/tmux/latest/reference/c-struct-format_job-out/) (attribute)
