chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
suppress more redundant redisplay_tree() calls
[disorder]
/
lib
/
addr.c
diff --git
a/lib/addr.c
b/lib/addr.c
index 153130bf65cf31634d8187ee4e3b917f0d63731e..579fd0f3a40d1a833380d91ed67fede593a2687a 100644
(file)
--- a/
lib/addr.c
+++ b/
lib/addr.c
@@
-17,6
+17,7
@@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
+/** @file lib/addr.c Socket address support */
#include <config.h>
#include "types.h"
#include <config.h>
#include "types.h"
@@
-88,6
+89,10
@@
struct addrinfo *get_address(const struct stringlist *a,
return res;
}
return res;
}
+/** @brief Comparison function for address information
+ *
+ * Suitable for qsort().
+ */
int addrinfocmp(const struct addrinfo *a,
const struct addrinfo *b) {
const struct sockaddr_in *ina, *inb;
int addrinfocmp(const struct addrinfo *a,
const struct addrinfo *b) {
const struct sockaddr_in *ina, *inb;