Browse Source

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

Rusty Russell 15 years ago
parent
commit
5b0bdc23fb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ccan/antithread/antithread.c
  2. 1 1
      ccan/antithread/test/run-spawn.c

+ 1 - 1
ccan/antithread/antithread.c

@@ -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;

+ 1 - 1
ccan/antithread/test/run-spawn.c

@@ -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) {