Commit ff9517a68792bb363c16f4e3155c4fc5a7f9d738

Authored by David Howells
Committed by Steve French
1 parent af352fe960

DNS: Fixes for the DNS query module

Fixes for the DNS query module, including:

 (1) Use 'negative' instead of '-ve' in the documentation.

 (2) Mark the kdoc comment with '/**' on dns_query().

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff

Documentation/networking/dns_resolver.txt
... ... @@ -96,9 +96,9 @@
96 96 for the default query type it is just a list of comma-separated IPv4 and
97 97 IPv6 addresses. The caller must free the result.
98 98  
99   - The length of the result string is returned on success, and a -ve error
100   - code is returned otherwise. -EKEYREJECTED will be returned if the DNS
101   - lookup failed.
  99 + The length of the result string is returned on success, and a negative
  100 + error code is returned otherwise. -EKEYREJECTED will be returned if the
  101 + DNS lookup failed.
102 102  
103 103 If _expiry is non-NULL, the expiry time (TTL) of the result will be
104 104 returned also.
net/dns_resolver/dns_query.c
... ... @@ -45,7 +45,7 @@
45 45  
46 46 #include "internal.h"
47 47  
48   -/*
  48 +/**
49 49 * dns_query - Query the DNS
50 50 * @type: Query type (or NULL for straight host->IP lookup)
51 51 * @name: Name to look up