- 23 Aug, 2011 6 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
Memory leak in tests revealed bug in jmap_free. Also, out-by-one error.
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
-
- 22 Aug, 2011 3 commits
-
-
Rusty Russell authored
We can only test the featureless tests, once we've built them!
-
Rusty Russell authored
layout.c's TDB creation functions were incorrect in case of a hash collision, causing occasional failure. Make it always use the (previously-failing) seed value, and fix it.
-
Joey Adams authored
-
- 16 Aug, 2011 3 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
It's just a header, I don't care what's done with it.
-
Rusty Russell authored
-
- 15 Aug, 2011 7 commits
-
-
Joey Adams authored
-
Joey Adams authored
-
Joey Adams authored
NOTE: btree was originally copyright 2010, and has not been touched by me since then. I don't know if changing the license to something more permissive requires updating the copyright year or not.
-
Joey Adams authored
-
Joey Adams authored
-
Joey Adams authored
NOTE: block_pool was originally copyright 2009, and has not been touched by me since then. I don't know if changing the license to something more permissive requires updating the copyright year or not.
-
Joey Adams authored
-
- 14 Aug, 2011 2 commits
-
-
Rusty Russell authored
No point checking malloc failure in usage(), since we don't elsewhere. We get 100% coverage with -O (due to code elimination) or 64 bit.
-
Rusty Russell authored
In particular, handing an pointer to ULL where a pointer to UL is expected won't work on big endian.
-
- 13 Aug, 2011 3 commits
-
-
Douglas Bagnall authored
As with the set_ functions, there are twelve permutations of integer size, base, and signedness. The supported sizes are int, long, and long long. For example, this: char buf1[OPT_SHOW_LEN]; char buf2[OPT_SHOW_LEN]; unsigned i = 1024000; opt_show_uintval_bi(buf1, &i); opt_show_uintval_si(buf2, &i); will put "1000k" in buf1, and "1024k" in buf2. Unlike the opt_set_ functions, these use unsigned arithmetic for unsigned values. (32 bit bug using sizeof(suffixes) instead of strlen(suffixes) fixed by Rusty)
-
Douglas Bagnall authored
This comment occurred in a couple of places: /* Set an integer value, various forms. Sets to 1 on arg == NULL. */ One instance was clearly spurious, while the other was misleading. Another resolution to this mismatch would be to add "if (arg == NULL){*l = 1; return NULL}" somewhere, but I suspect it may have been left out/removed because someone thought better.
-
Douglas Bagnall authored
These functions come in two flavours: those ending with "_si", which have 1000-based interpretations of the suffixes; and those ending with "_bi", which use base 1024. There are versions for signed and unsigned int, long, and long long destinations, with tests for all 12 new functions. The tests get a bit repetitive, I am afraid. As an example, if the -x option were using the opt_set_intval_bi function, then all of these would do the same thing: $ foo -x 5M $ foo -x $((5 * 1024 * 1024)) $ foo -x 5242880 $ foo -x 5120k quite what that thing is depends on the size of your int -- people with 16 bit ints would see an "out of range" error message. The arithmetic for unsigned variations is actually done using signed long long integers, so the maximum possible value is LLONG_MAX, not ULLONG_MAX. This follows the practice of existing functions, and avoids tedious work.
-
- 01 Aug, 2011 2 commits
-
-
Rusty Russell authored
We were missing failed tests: if the top-level returns FAIL_PROBE, we would exit; this should only apply to children.
-
Rusty Russell authored
-
- 22 Jul, 2011 1 commit
-
-
Rusty Russell authored
Kirill A. Shutemov asked for libgit. I would say they should upgrade their license, but libhx on which these are based is also LGPLv2.1 or later, so I prefer to match that.
-
- 21 Jul, 2011 13 commits
-
-
Rusty Russell authored
The recently added ccanlint licensing checks revealed several cases where the published license of a module is misleading: a dependency of that module has a stricter license (eg. a public domain module which depends on a GPL one). Where these are my modules, I've fixed them. Otherwise I'm overriding the checks for the moment, and asking the authors what they want to do.
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
We don't correctly detect pure-comment lines in ccan/ttxml/ttxml.c without this.
-
Rusty Russell authored
This is for SAMBA, so we follow their rules and do full license headers. Two files were missing them.
-
Rusty Russell authored
Too trivial to deserve LGPL, and all my code.
-
Rusty Russell authored
Too trivial to deserve LGPL, and all my code.
-
Rusty Russell authored
Various LGPL components depend on it, via ccan/likely. ccan/likely really only needs it when CCAN_LIKELY_DEBUG is set, but making it a conditional dependency is a bit nasty if defining that changes the license. So this is the simplest fix. I might relicense under PD or BSD later, since the likely module should probably have an even more liberal license.
-
Rusty Russell authored
We don't check external dependencies, but internal ccan deps are pretty easy.
-
Rusty Russell authored
Refactoring helps the next patch.
-
Rusty Russell authored
Comments in code indicate this is actually GPL version 2 or later.
-
Rusty Russell authored
Comments in code indicate this is actually GPL version 2 only.
-
Rusty Russell authored
As ccanlint now says: Source files don't contain incompatible licenses (license_file_compat): FAIL /home/rusty/devel/cvs/ccan/ccan/md4/md4.c:Found boilerplate for license 'GPLv2+' which is incompatible with 'LGPLv2+' This is actually GPL code! Add LICENSE link, too.
-