- 31 Oct, 2012 5 commits
-
-
Rusty Russell authored
/home/rusty/devel/cvs/ccan/ccan/alignof/test/run.c:32:7: warning: variable ‘c2’ set but not used [-Wunused-but-set-variable] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Compiler: /home/rusty/devel/cvs/ccan/ccan/str/str.h: In function ‘main’: /home/rusty/devel/cvs/ccan/ccan/str/str.h:69:5: warning: variable ‘i’ set but not used [-Wunused-but-set-variable] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
This means error messages come out in the right place. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Public domain for those who don't have it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
http://creativecommons.org/publicdomain/zero/1.0/legalcodeSigned-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 22 Oct, 2012 1 commit
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 10 Oct, 2012 1 commit
-
-
David Gibson authored
Replace the current brute force implementation of rfc822_next_header_of_name() with one using a hash table to (lazily) index the header fields by name. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 08 Oct, 2012 2 commits
-
-
David Gibson authored
This patch adds functions to the rfc822 module to retrieve header fields of a given name. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
Currently, calling bytestring_from_string(NULL) will result in a SEGV within strlen(). This patch makes this construct safe, returning bytestring_NULL, which seems a less surprising result. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 05 Oct, 2012 2 commits
-
-
David Gibson authored
Currently the test infrastructure for constructing example messages then parsing them assumes that constructed headers never have errors of any kind. That's true so far, but it limits the versatility of this test apparatus. This patch extends the infrastructure to allow minor errors (that is things other than a missing colon) to be handled. The existing test data is also extended to include cases which use this. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
Rusty Russell authored
David Gibson reports a new format, meaning we didn't show the gcov files with -vv.
-
- 04 Oct, 2012 2 commits
-
-
David Gibson authored
This error constant is actually more specific than the name suggests - it indicates that a header field name contains characters which are not permitted in a header field name. Rename the constant to better reflect this, likewise rename the testcase based around it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
The run-bad-header.c test in the rfc822 module is actually testing handling of one specific sort of bad header - a header field which contains no colon character. Rename the test and its internal variables to better reflect this. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 03 Oct, 2012 2 commits
-
-
David Gibson authored
The check_header() test function will be useful to more than one testcase so this patch moves it into the common helper.c file. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
Add a simple full-blown example program for the rfc822 module. 'headernames' simply dumps the header field name for every header field in each message file given on the command line to stdout. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 24 Sep, 2012 1 commit
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 19 Sep, 2012 1 commit
-
-
Rusty Russell authored
Approved by all contributors: https://lists.ozlabs.org/pipermail/ccan/2012-September/000490.html https://lists.ozlabs.org/pipermail/ccan/2012-September/000488.html https://lists.ozlabs.org/pipermail/ccan/2012-September/000489.htmlSigned-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 10 Sep, 2012 10 commits
-
-
Rusty Russell authored
And enhance the documentation a little.
-
Rusty Russell authored
Times can be invalid: non-normalized, or negative.
-
Rusty Russell authored
-
Rusty Russell authored
It's a superset of struct timeval. It's also a bit trickier, since we need -lrt on Linux to use clock_gettime(), and also we can't just cram the time into a u64 for multiply and divide.
-
Rusty Russell authored
If we do have it, and we redefine it, compilation breaks.
-
Rusty Russell authored
In particular, HAVE_CLOCK_GETTIME_IN_LIBRT.
-
Rusty Russell authored
We intuit the dependencies of embedded examples by looking for #include. But these extra dependencies may require extra libraries, so we need to add those, too.
-
Rusty Russell authored
If a dependent module needs -l options, we don't notice. Fix that, now we have one.
-
Rusty Russell authored
We let the get_deps() caller hand us the compiled _info filename, but what about recursive dependencies? These we re-generate every time. So fix this: hand a generator callback to get_deps(), expose the one which simply compiles it, and add a ccanlint one which looks up the manifest to see if we have one already. Before: $ ccanlint -vvvv ccan/failtest | grep -c 'Creating.*_info' 31 After: $ ccanlint -vvvv ccan/failtest | grep -c 'Creating.*_info' 17
-
Rusty Russell authored
-
- 14 Aug, 2012 1 commit
-
-
David Gibson authored
This fixes some format string related bugs that show up on 64-bit builds. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 12 Aug, 2012 1 commit
-
-
David Gibson authored
For convenience, check in a copy of the full text of RFC5322 (the latest revision of RFC822). Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 18 Jul, 2012 1 commit
-
-
Rusty Russell authored
In particular, don't complain on conditional lines. That's less thorough, but removes false negatives we have now.
-
- 30 Jun, 2012 1 commit
-
-
David Gibson authored
next_header_parse() had a bug which would mis-parse an extra header if the body of the message began with a linear whitespace character (space or tab). This patch fixes it and adds a suitable testcase. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 26 Jun, 2012 4 commits
-
-
Rusty Russell authored
It's only used for testing, but it's LGPLv3 (vs LGPLv2). But unless we suppress it, ccanlint exits with status 1 and my sanity checks stop me from uploading.
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
-
- 20 Jun, 2012 1 commit
-
-
Alessandro Guido authored
Fixes this error: /hash.h:304:13: error: two or more data types in declaration specifiers
-
- 09 Jun, 2012 2 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
Seems it's not available on Solaris.
-
- 08 Jun, 2012 2 commits
-
-
Rusty Russell authored
This is where you see the genius of the originals: you can't implement them without horrible hacks to get the program name :(
-
Rusty Russell authored
-