- 21 Jun, 2014 1 commit
-
-
Cody P Schafer authored
CC: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Cody P Schafer <dev@codyps.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 16 Jun, 2014 4 commits
-
-
David Gibson authored
haystack is a void *, so we can't do pointer arithmetic on it uncasted. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
There are a couple of small problems with the includes used in most of ccan's _info files. * _info routinely uses printf(), and so should include <stdio.h>, but only some of them do. We get away with it, because they do include <string.h>, which apparently includes <stdio.h> indirectly, but we should be explicit about it. * Most _info files were including config.h after the system headers. That _seems_ sensible, but actually causes problems. Because config.h defines _GNU_SOURCE it can change the behaviour of the system headers. More specifically it can make them behave differently to how the individual module headers (which have included config.h) expects them to behave. This patch adjusts all the existing _info files and, more importantly, the template constructed by ccanlint. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
David Gibson authored
This changes rfc822 to use the memmem module to supply a memmem() function if the C library lacks it, instead of rolling our own locally. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
David Gibson authored
glibc includes a memmem() function which, by analogy with strstr() searches for a byte sequence within a larger byte sequence. The function isn't standard, however, so other C libraries may not include it. This adds a trivial module providing the memmem() function, if the C library doesn't already do so. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 13 Jun, 2014 2 commits
-
-
David Gibson authored
Forgot the 'inline' in 'static inline' in the functions defined in the header, which means that lots of warnings will be generated, if you include the header but don't use the functions. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 12 Jun, 2014 1 commit
-
-
Rusty Russell authored
time_between()'s ordering matches time_sub, for better or worse. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 10 Jun, 2014 21 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
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>
-