- 10 Jun, 2014 18 commits
-
-
Rusty Russell authored
From patch by David Gibson, rewritten on new ccan/time. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
As suggested by David Gibson. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
ccanlint now detects more missing dependencies. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Arguably a bug in talloc_realloc_array, which uses an unsigned for size, resulting in silent truncation and a memcpy into a too-small buffer. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
All the cool kids are using tal/str now... Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Broken since commit 7c69053b which normalized API. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Broken since commit 2012d45e which switched to timespec. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
tal variant of grab_file (which uses talloc). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
It's a prototype unused by anything else. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Showing its origins in talloc_link. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Cut & paste bug. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 04 Jun, 2014 2 commits
-
-
David Gibson authored
A straightforward implementation of the Jacobson/Karels algorithm for estimating round-trip time on a network link. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
David Gibson authored
Add a 'minmax' module with typesafe macros to compute minimum, maximum and clamping. Inspired by the versions used in the Linux kernel, but using a different implementation based on __builtin_types_compatible_p() and the build_assert module. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 02 Jun, 2014 1 commit
-
-
Rusty Russell authored
Somehow, it was a normal file. Reported-by: Sam Watkins <sam@nipl.net> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 27 May, 2014 7 commits
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
If one connect failed, we'd return the other one without waiting for the connect to complete. This resulted in read() returning 0, which was really weird. The downside: the poll doesn't seem to time out when the connect times out (Linux 3.13 x86-64). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 19 May, 2014 1 commit
-
-
David Gibson authored
A number of functions in bitmap.h take parameters which they don't modify but aren't currently marked as const. This patch fixes that. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 14 May, 2014 1 commit
-
-
David Gibson authored
No reason for it not to be. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 24 Apr, 2014 4 commits
-
-
Cody P Schafer authored
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 20 Mar, 2014 1 commit
-
-
Emilio G. Cota authored
Bitmap words (e.g. resulting from BITMAP_{N,HEAD}WORDS) are of unsigned type. Use "unsigned int" to iterate over bitmap words to avoid comparisons between signed and unsigned expressions. GCC otherwise warns about these when -Wsign-compare is enabled. Signed-off-by: Emilio G. Cota <cota@braap.org>
-
- 02 Mar, 2014 1 commit
-
-
Rusty Russell authored
This turns out to be the right sequence for pettycoin, which wants to reap the child in the finish routine. From that sample size of 1, this is clearly the Right Thing! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 28 Feb, 2014 1 commit
-
-
Rusty Russell authored
Simpler reimplementation of SS's patch; just plumb file and line through inline functions in header. We add a new check, which actually tests these, and fix _info which missed ccan/check_type as a dependency. Based-on-the-true-story-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 24 Feb, 2014 2 commits
-
-
Rusty Russell authored
bfgminer/cgminer/sgminer want these. Con implemented some, but these are independently written (with tests!) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Acked by contributors: Luke-Jr <luke@dashjr.org>: I don't have any objections Douglas Bagnall <douglas@halo.gen.nz>: Fine by me. Joel Stanley <joel@jms.id.au>: Fine with me. Brad Hards <bradh@frogmouth.net>: Ack. No response from Joey (trivial warning patch) or Andreas Schlick (one trivial patch, but he also wrote opt_free() (which was a 2 line function). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 11 Feb, 2014 1 commit
-
-
Rusty Russell authored
This was suggested by Luke, though his version insisted on using tab. This one is a bit more complex, but allows either tab or space. Suggested-by: Luke Dashjr <luke-jr+git@utopios.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-