diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-01-26 00:11:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-01-26 00:11:47 +0000 |
commit | 4dfb29fa38a22615eda253b1124261379f6fbbcc (patch) | |
tree | 0b5fcc4d7ad0cc68d672c81c0b931d9d3245bc49 /job.c | |
parent | ecc22c521d83f8ce480c0e2866fdf3ed14bd6131 (diff) | |
download | rtmux-4dfb29fa38a22615eda253b1124261379f6fbbcc.tar.gz rtmux-4dfb29fa38a22615eda253b1124261379f6fbbcc.tar.bz2 rtmux-4dfb29fa38a22615eda253b1124261379f6fbbcc.zip |
Use LIST_* not SLIST_*.
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -32,7 +32,7 @@ */ /* All jobs list. */ -struct joblist all_jobs = SLIST_HEAD_INITIALIZER(all_jobs); +struct joblist all_jobs = LIST_HEAD_INITIALIZER(all_jobs); RB_GENERATE(jobs, job, entry, job_cmp); @@ -99,7 +99,7 @@ job_add(struct jobs *jobs, int flags, struct client *c, const char *cmd, if (jobs != NULL) RB_INSERT(jobs, jobs, job); - SLIST_INSERT_HEAD(&all_jobs, job, lentry); + LIST_INSERT_HEAD(&all_jobs, job, lentry); return (job); } @@ -119,7 +119,7 @@ job_free(struct job *job) { job_kill(job); - SLIST_REMOVE(&all_jobs, job, job, lentry); + LIST_REMOVE(job, lentry); xfree(job->cmd); if (job->freefn != NULL && job->data != NULL) |