diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-11 16:44:23 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-11 16:44:23 +0000 |
commit | 22cf41f697ff6de1eb4d6c5f66e5de70e86c9f74 (patch) | |
tree | ca8e781d5f8ee611c4adaaaf0b7892120e21e298 /doc/libs6dns/s6dns-domain.html | |
parent | 5ad27a3dc4b957191e2e657d41656810138ba789 (diff) | |
download | s6-dns-22cf41f697ff6de1eb4d6c5f66e5de70e86c9f74.tar.xz |
Update documentation, fix wrong types
Diffstat (limited to 'doc/libs6dns/s6dns-domain.html')
-rw-r--r-- | doc/libs6dns/s6dns-domain.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/libs6dns/s6dns-domain.html b/doc/libs6dns/s6dns-domain.html index 88b9621..8badbb0 100644 --- a/doc/libs6dns/s6dns-domain.html +++ b/doc/libs6dns/s6dns-domain.html @@ -49,7 +49,7 @@ on the stack. <h2> Functions </h2> <p> -<code> int s6dns_domain_fromstring (s6dns_domain_t *d, char const *s, unsigned int len) </code> <br /> +<code> int s6dns_domain_fromstring (s6dns_domain_t *d, char const *s, size_t len) </code> <br /> Makes a (string form) domain from string <em>s</em> of length <em>len</em>, and stores it into *<em>d</em>. Returns 1 if it succeeds, otherwise it returns 0 and sets errno appropriately - most likely ENAMETOOLONG, i.e. @@ -104,20 +104,20 @@ valid packet form (EPROTO). </p> <p> -<code> int s6dns_domain_fromstring_noqualify_encode (s6dns_domain_t *d, char const *s, unsigned int len) </code> <br /> +<code> int s6dns_domain_fromstring_noqualify_encode (s6dns_domain_t *d, char const *s, size_t len) </code> <br /> Higher-level function wrapping some of the above. Makes an encoded, fully qualified (without resorting to qualification) domain from string <em>s</em> of length <em>len</em>. Returns 1 if it succeeds and 0 if it fails. </p> <p> -<code> unsigned int s6dns_domain_fromstring_qualify_encode (s6dns_domain_t *list, char const *s, unsigned int len, char const *rules, unsigned int rulesnum) </code> <br /> +<code> unsigned int s6dns_domain_fromstring_qualify_encode (s6dns_domain_t *list, char const *s, size_t len, char const *rules, unsigned int rulesnum) </code> <br /> Another wrapping function. It makes a list of encoded, fully qualified domains, from string <em>s</em> of length <em>len</em> using <em>rulesnum</em> qualification rules in <em>rules</em>. It writes at most <em>rulesnum</em> domains into the array pointed to by <em>list</em> and returns the number of written domains, or 0 on an error. -</p> + </p> <p> <code> void s6dns_domain_arpafromip4 (s6dns_domain_t *d, char const *ip) </code> <br /> |