summaryrefslogtreecommitdiff
path: root/hald-runner
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2006-10-02 17:34:00 +0200
committerSjoerd Simons <sjoerd@luon.net>2006-10-02 17:34:00 +0200
commitc4c0829e6164d35e651529dea81ccead2c9d999e (patch)
treefdd8ea6018ccfb85a094359e216402f3c0b61577 /hald-runner
parent99f0ef983dc8724680c3892d44ec9c20df0eae1f (diff)
prevent hald-runner from printing unnecessary warning messages
Remove a trailing ; after an if. Caused warning message about not being able to write to the started program's stdin to be printed even though there were no errors.
Diffstat (limited to 'hald-runner')
-rw-r--r--hald-runner/runner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hald-runner/runner.c b/hald-runner/runner.c
index 3fb1fb25..57a2a802 100644
--- a/hald-runner/runner.c
+++ b/hald-runner/runner.c
@@ -274,8 +274,8 @@ run_request_run (run_request *r, DBusConnection *con, DBusMessage *msg, GPid *ou
g_free (program_dir);
if (r->input) {
- if (write(stdin_v, r->input, strlen(r->input)) != (ssize_t) strlen(r->input));
- printf("Warning: Error while wite r->input (%s) to stdin_v.\n", r->input);
+ if (write(stdin_v, r->input, strlen(r->input)) != (ssize_t) strlen(r->input))
+ printf("Warning: Error while writing r->input (%s) to stdin_v.\n", r->input);
close(stdin_v);
}