4bc1606d0b91b3b3cf11fab3ba102bd1f96752a3 — Simon Ser 9 days ago 54d8edc
Make update_job static

This is an internal job control function, no need to expose it.
2 files changed, 3 insertions(+), 5 deletions(-)

M include/shell/job.h
M shell/job.c
M include/shell/job.h => include/shell/job.h +0 -4
@@ 80,10 80,6 @@ bool job_set_foreground(struct mrsh_job *job, bool foreground, bool cont);
  */
 bool init_job_child_process(struct mrsh_state *state);
 /**
- * Update the shell's state with a child process status.
- */
-void update_job(struct mrsh_state *state, pid_t pid, int stat);
-/**
  * Refreshes status for all jobs.
  */
 bool refresh_jobs_status(struct mrsh_state *state);

M shell/job.c => shell/job.c +3 -1
@@ 232,6 232,8 @@ int job_poll(struct mrsh_job *job) {
 	return proc_status;
 }
 
+static void update_job(struct mrsh_state *state, pid_t pid, int stat);
+
 static bool _job_wait(struct mrsh_state *state, pid_t pid, int options) {
 	struct mrsh_state_priv *priv = state_get_priv(state);
 


@@ 340,7 342,7 @@ bool init_job_child_process(struct mrsh_state *state) {
 	return true;
 }
 
-void update_job(struct mrsh_state *state, pid_t pid, int stat) {
+static void update_job(struct mrsh_state *state, pid_t pid, int stat) {
 	struct mrsh_state_priv *priv = state_get_priv(state);
 
 	update_process(state, pid, stat);