Commit 5b0bdc23 authored by Rusty Russell's avatar Rusty Russell

antithread: fix -Wwrite-strings warning in test, and trailing whitespace.

parent e5d37823
......@@ -420,7 +420,7 @@ struct at_pool *at_get_pool(int *argc, char *argv[], void **arg)
p = atp->p = talloc(atp, struct at_pool_contents);
if (sscanf(argv[1], "AT:%p/%lu/%i/%i/%i/%p",
if (sscanf(argv[1], "AT:%p/%lu/%i/%i/%i/%p",
&p->pool, &p->poolsize, &p->fd,
&p->parent_rfd, &p->parent_wfd, arg) != 6) {
errno = EINVAL;
......
......@@ -8,7 +8,7 @@ int main(int argc, char *argv[])
struct athread *at;
int err, *pid;
void *arg;
char *bad_args[] = { "/", NULL };
char *bad_args[] = { (char *)"/", NULL };
atp = at_get_pool(&argc, argv, &arg);
if (atp) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment