diff options
| author | Danny Kukawka <danny.kukawka@web.de> | 2006-08-06 18:26:29 +0200 |
|---|---|---|
| committer | Danny Kukawka <danny.kukawka@web.de> | 2006-08-06 18:26:29 +0200 |
| commit | 732e625134171daf032c9dc39067efe68d6b41b8 (patch) | |
| tree | c0b7e5287995756175893ff88848263fa4f08bd0 /hald-runner | |
| parent | 5248f077b0ff0087c0d37464713ee36febeee189 (diff) | |
fixed several compiler warnings (warn_unused_result and format stuff)
This fixes several compiler warnings from warn_unused_result compiler
flag and some "format '%*' expects type 'x', but argument z has type 'xy'"
warnings on 64bit systems.
Diffstat (limited to 'hald-runner')
| -rw-r--r-- | hald-runner/runner.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hald-runner/runner.c b/hald-runner/runner.c index 7d33748a..a2d1a210 100644 --- a/hald-runner/runner.c +++ b/hald-runner/runner.c @@ -259,7 +259,8 @@ run_request_run(run_request *r, DBusConnection *con, DBusMessage *msg) g_free (program_dir); if (r->input) { - write(stdin_v, r->input, strlen(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); close(stdin_v); } |
