- 03 Nov, 2010 2 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
Compiling with gcc -O3 added some more warnings, especially about aliasing. By setting Word_t to size_t we fix some of them, but jmap_@name_firstval in JMAP_DEFINE_PTRIDX_TYPE we need to use a real size_t rather than lazily casting our index to a size_t *. Gcc also spotted taht we used idx[NUM] in test/run-ptridx-type.c; allocate that and make the usage explicit.
-
- 02 Nov, 2010 1 commit
-
-
Rusty Russell authored
-
- 30 Oct, 2010 3 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
-
- 29 Oct, 2010 1 commit
-
-
Rusty Russell authored
-
- 27 Oct, 2010 1 commit
-
-
Rusty Russell authored
I noticed this when I straced something; we're doing 1-byte writes. This reduced the time for "make check" from 12m37s to 11m48s.
-
- 26 Oct, 2010 7 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
If you've not got gcc, this is a bit of a lose. But for everyone else, it's far simpler.
-
Rusty Russell authored
Doing our own parsing lost a few lines of code, too. Our coverage is over 99% now.
-
Rusty Russell authored
This was for lockcheck, but that didn't work very well. Seems like a useful addition nonetheless.
-
Rusty Russell authored
With correct seed, we could expand hash and break test.
-
Rusty Russell authored
Paul Wayper points out that "or" has a better mental mapping, and more importantly that this is how Perl's Getopt::Long does it. I'm still leaving the - and -- in there, for reasons previously articulated (grep-friendly and harder to get wrong).
-
- 21 Oct, 2010 3 commits
-
-
Joey Adams authored
-
Rusty Russell authored
-
Rusty Russell authored
-
- 20 Oct, 2010 10 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
In particular, gcc warns about cast from int to pointer.
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
Instead, directly control write().
-
Rusty Russell authored
%.* => unsigned, not size_t.
-
Rusty Russell authored
%zu for size_t printf.
-
Rusty Russell authored
Make sure we use 1UL to bitshift, not 1.
-
Rusty Russell authored
printf's %.* means an unsigned arg, not a size_t.
-
- 18 Oct, 2010 2 commits
-
-
Rusty Russell authored
check_free_list returns a length, not bool.
-
Rusty Russell authored
Particularly useful for reproduction, like tdbtorture.
-
- 17 Oct, 2010 2 commits
-
-
Rusty Russell authored
If a Swedish-speaking Finn writes code in English, why should I complain about a few weird spellings?
-
Rusty Russell authored
-
- 15 Oct, 2010 1 commit
-
-
Rusty Russell authored
(Was succeeding in finding "Free bucket 8" string, because of "Free bucket 80:".
-
- 14 Oct, 2010 1 commit
-
-
Rusty Russell authored
-
- 08 Oct, 2010 1 commit
-
-
Rusty Russell authored
Now we get long options!
-
- 07 Oct, 2010 5 commits
-
-
Rusty Russell authored
The former encapsulates a common "just exit on error" case, the latter avoids having to repeat the extra usage string. (We actually would have crashed before if someone passed NULL there, even though the documentation said you could).
-
Rusty Russell authored
-
Rusty Russell authored
A little less typing for users.
-
Rusty Russell authored
compiler, list, noerr, sparse_bsearch, str, str_talloc, stringmap, talloc_link, tdb, tdb2, typesafe_cb: fix examples Phew, now they call compile!
-
Rusty Russell authored
Now (with fixes) every ccanlint example compiles!
-