rfc822: Rename RFC822_HDR_BAD_NAME constant
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 4 Oct 2012 14:17:10 +0000 (00:17 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 4 Oct 2012 14:17:22 +0000 (00:17 +1000)
commit4be05500e605ccc0a68f1d3704c12ffd03cf2dfb
tree9a3a698be855d8071c6ecfad8de92416df3c599d
parentcd90166506cb26fc0ed56c913265f490ff48f7cd
rfc822: Rename RFC822_HDR_BAD_NAME constant

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>
ccan/rfc822/rfc822.c
ccan/rfc822/rfc822.h
ccan/rfc822/test/run-bad-header-name-chars.c [new file with mode: 0644]
ccan/rfc822/test/run-bad-header-name.c [deleted file]