]> git.ozlabs.org Git - ccan/blobdiff - ccan/net/_info
crypto/hmac_sha256: new module.
[ccan] / ccan / net / _info
index 9ce0e150dfe3b53f26bc2c293497b6cf4e10e20d..cfa58f842830fd07ce4c89effa95e203e4248234 100644 (file)
@@ -1,5 +1,6 @@
-#include <string.h>
 #include "config.h"
+#include <stdio.h>
+#include <string.h>
 
 /**
  * net - simple IPv4/IPv6 socket library
@@ -14,8 +15,6 @@
  *
  * Example:
  *     #include <ccan/net/net.h>
- *     #include <sys/types.h>
- *     #include <sys/socket.h>
  *     #include <netinet/in.h>
  *     #include <stdio.h>
  *     #include <err.h>
@@ -48,6 +47,7 @@
  *             fd = net_connect(addr);
  *             if (fd < 0)
  *                     err(1, "Failed to connect to %s", dest);
+ *             freeaddrinfo(addr);
  *     
  *             if (getsockname(fd, &u.s, &slen) == 0)
  *                     printf("Connected via %s\n",
@@ -66,6 +66,7 @@ int main(int argc, char *argv[])
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/noerr\n");
                return 0;
        }