diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-02-15 15:12:28 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-02-15 15:12:28 +0000 |
commit | 3b56ebce6dd4077f6527843cfc1da63614605875 (patch) | |
tree | 1d5b128f729a45a7c1701d174bba81c37d733102 /job.c | |
parent | 2ab568fa88cb40e0d63696d60b9e871a9909074d (diff) | |
download | rtmux-3b56ebce6dd4077f6527843cfc1da63614605875.tar.gz rtmux-3b56ebce6dd4077f6527843cfc1da63614605875.tar.bz2 rtmux-3b56ebce6dd4077f6527843cfc1da63614605875.zip |
Sync OpenBSD patchset 854:
Use LIST_* not SLIST_*.
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: job.c,v 1.21 2011-02-14 23:11:33 tcunha Exp $ */ +/* $Id: job.c,v 1.22 2011-02-15 15:12:28 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -31,7 +31,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); @@ -98,7 +98,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); } @@ -118,7 +118,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) |