summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-04 14:55:36 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-04 14:55:36 -0400
commitca7196c5dd362ccc6f19aaafef5b4252522e96a2 (patch)
treebd8687846d60efcadac3d2e06f77bdabedbec0b5 /src/c
parentdfe722a61e5c81cdfa6ed844933a14783cd9bd9c (diff)
spawn
Diffstat (limited to 'src/c')
-rw-r--r--src/c/urweb.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 880cd143..6f6f1fc8 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -701,17 +701,16 @@ const char *uw_Basis_get_script(uw_context ctx, uw_unit u) {
}
}
-const char *uw_Basis_get_settings(uw_context ctx, uw_Basis_string onload) {
+const char *uw_Basis_get_settings(uw_context ctx, uw_unit u) {
if (ctx->client == NULL)
return "";
else {
- char *r = uw_malloc(ctx, 52 + 3 * INTS_MAX + strlen(ctx->url_prefix) + strlen(onload));
- sprintf(r, " onload='client_id=%u;client_pass=%d;url_prefix=\"%s\";timeout=%d;listener();%s'",
+ char *r = uw_malloc(ctx, 59 + 3 * INTS_MAX + strlen(ctx->url_prefix));
+ sprintf(r, "client_id=%u;client_pass=%d;url_prefix=\"%s\";timeout=%d;listener();",
ctx->client->id,
ctx->client->pass,
ctx->url_prefix,
- ctx->timeout,
- onload);
+ ctx->timeout);
return r;
}
}