]> git.ipfire.org Git - people/ms/dma.git/commit
Make add_host() really return an error code.
authorPeter Pentchev <roam@ringlet.net>
Fri, 17 Dec 2010 11:31:41 +0000 (13:31 +0200)
committerPeter Pentchev <roam@ringlet.net>
Fri, 17 Dec 2010 11:31:41 +0000 (13:31 +0200)
commit06dd5b8936f8aaaf02ec9a449e86073f50ffa607
tree23c906fbf638c837ea790ddd4249ceaf869707c4
parent4b26e6a7f55eee3505fc1c3b8fc6ecbacdc34388
Make add_host() really return an error code.

Now that add_host() *may* return an error, it is kind of confusing
(and actually leads to errors) that it also returns the number of
hosts added to the value/result "hosts" array.  Since the caller
really checks add_host()'s return value now, a successful lookup that
returns one host added will be treated as an error :)
dns.c