diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-12-03 22:50:09 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-12-03 22:50:09 +0000 |
commit | 15a64b805e46584d37cc6745383709632e287999 (patch) | |
tree | 5a55f5006585c9cdde05163251fd99da243575b5 /job.c | |
parent | 6c9862662fd2cccdc55be9d447a27b10f33ed8ea (diff) | |
download | rtmux-15a64b805e46584d37cc6745383709632e287999.tar.gz rtmux-15a64b805e46584d37cc6745383709632e287999.tar.bz2 rtmux-15a64b805e46584d37cc6745383709632e287999.zip |
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -80,7 +80,7 @@ job_add(struct jobs *jobs, int flags, struct client *c, const char *cmd, void (*callbackfn)(struct job *), void (*freefn)(void *), void *data) { struct job *job; - + job = xmalloc(sizeof *job); job->cmd = xstrdup(cmd); job->pid = -1; @@ -183,7 +183,7 @@ job_run(struct job *job) if (job->event != NULL) bufferevent_free(job->event); - job->event = + job->event = bufferevent_new(job->fd, NULL, NULL, job_callback, job); bufferevent_enable(job->event, EV_READ); @@ -216,7 +216,7 @@ job_died(struct job *job, int status) { job->status = status; job->pid = -1; - + if (job->fd == -1) { if (job->callbackfn != NULL) job->callbackfn(job); |