]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - ccan/oserver/_info
lca2011: simpler testing by not having oserver_setup exit.
[ccan-lca-2011.git] / ccan / oserver / _info
index b906502beba1d4579f1fdac53ab6ed3a226fb1ae..a9c74fc961c698afcd6742e0db6371570ba44138 100644 (file)
@@ -20,6 +20,8 @@
  *             int fd, sockfd;
  *
  *             sockfd = oserver_setup();
+ *             if (sockfd < 0)
+ *                     err(1, "Failed to set up server socket");
  *
  *             fd = accept(sockfd, NULL, NULL);
  *             if (fd < 0)
@@ -40,6 +42,7 @@ int main(int argc, char *argv[])
                printf("ccan/read_write_all\n");
                printf("ccan/str\n");
                printf("ccan/foreach\n");
+               printf("ccan/noerr\n");
                return 0;
        }